@@ -19,6 +19,10 @@ |
||
| 19 | 19 | protected $parent; |
| 20 | 20 | protected $name; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param WorkflowField $parent |
|
| 24 | + * @param string $name |
|
| 25 | + */ |
|
| 22 | 26 | public function __construct($parent, $name) { |
| 23 | 27 | $this->parent = $parent; |
| 24 | 28 | $this->name = $name; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * Which columns are handled by this component |
| 50 | 50 | * |
| 51 | 51 | * @param type $gridField |
| 52 | - * @return type |
|
| 52 | + * @return string[] |
|
| 53 | 53 | */ |
| 54 | 54 | public function getColumnsHandled($gridField) { |
| 55 | 55 | return array('Actions'); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * Which GridField actions are this component handling |
| 60 | 60 | * |
| 61 | 61 | * @param GridField $gridField |
| 62 | - * @return array |
|
| 62 | + * @return string[] |
|
| 63 | 63 | */ |
| 64 | 64 | public function getActions($gridField) { |
| 65 | 65 | return array('exportrecord'); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * Which columns are handled by this component |
| 60 | 60 | * |
| 61 | 61 | * @param type $gridField |
| 62 | - * @return type |
|
| 62 | + * @return string[] |
|
| 63 | 63 | */ |
| 64 | 64 | public function getColumnsHandled($gridField) { |
| 65 | 65 | return array('Actions'); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @param DataObject $record |
| 71 | 71 | * @param string $columnName |
| 72 | 72 | * |
| 73 | - * @return string - the HTML for the column |
|
| 73 | + * @return HTMLText - the HTML for the column |
|
| 74 | 74 | */ |
| 75 | 75 | public function getColumnContent($gridField, $record, $columnName) { |
| 76 | 76 | $data = new ArrayData(array( |
@@ -6,6 +6,9 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | class WorkflowPublishTargetJob extends AbstractQueuedJob { |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param string $type |
|
| 11 | + */ |
|
| 9 | 12 | public function __construct($obj = null, $type = null) { |
| 10 | 13 | if ($obj) { |
| 11 | 14 | $this->setObject($obj); |
@@ -63,6 +63,7 @@ discard block |
||
| 63 | 63 | * Will recursively query parent elements until it finds one, if available |
| 64 | 64 | * |
| 65 | 65 | * @param DataObject $dataObject |
| 66 | + * @return null|DataObject |
|
| 66 | 67 | */ |
| 67 | 68 | public function getDefinitionFor(DataObject $dataObject) { |
| 68 | 69 | if ($dataObject->hasExtension('WorkflowApplicable') || $dataObject->hasExtension('FileWorkflowApplicable')) { |
@@ -87,6 +88,7 @@ discard block |
||
| 87 | 88 | * |
| 88 | 89 | * @param data object |
| 89 | 90 | * @param integer |
| 91 | + * @param DataObject $object |
|
| 90 | 92 | * @return workflow definition |
| 91 | 93 | */ |
| 92 | 94 | |
@@ -288,7 +290,6 @@ discard block |
||
| 288 | 290 | /** |
| 289 | 291 | * Get items that the passed-in user has awaiting for them to action |
| 290 | 292 | * |
| 291 | - * @param Member $member |
|
| 292 | 293 | * @return DataList $userInstances |
| 293 | 294 | */ |
| 294 | 295 | public function userPendingItems(Member $user) { |
@@ -315,7 +316,6 @@ discard block |
||
| 315 | 316 | /** |
| 316 | 317 | * Get items that the passed-in user has submitted for workflow review |
| 317 | 318 | * |
| 318 | - * @param Member $member |
|
| 319 | 319 | * @return DataList $userInstances |
| 320 | 320 | */ |
| 321 | 321 | public function userSubmittedItems(Member $user) { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * Creates the relevant data objects for this structure, returning an array |
| 113 | 113 | * of actions in the order they've been created |
| 114 | 114 | * |
| 115 | - * @param WorkflowDefinition $definitino |
|
| 115 | + * @param WorkflowDefinition $definition |
|
| 116 | 116 | * An optional workflow definition to bind the actions into |
| 117 | 117 | * @return array |
| 118 | 118 | */ |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * Create a workflow action based on a template |
| 165 | 165 | * |
| 166 | 166 | * @param string $name |
| 167 | - * @param array $template |
|
| 167 | + * @param array $actionTemplate |
|
| 168 | 168 | * @param WorkflowDefinition $definition |
| 169 | 169 | * @return WorkflowAction |
| 170 | 170 | */ |