@@ -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) { |
@@ -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; |
@@ -71,6 +71,9 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected $structure; |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $name |
|
76 | + */ |
|
74 | 77 | public function __construct($name, $description = '', $version = '0.0', $remindDays = 0, $sort = 0) { |
75 | 78 | $this->name = $name; |
76 | 79 | $this->description = $description; |
@@ -112,7 +115,7 @@ discard block |
||
112 | 115 | * Creates the relevant data objects for this structure, returning an array |
113 | 116 | * of actions in the order they've been created |
114 | 117 | * |
115 | - * @param WorkflowDefinition $definitino |
|
118 | + * @param WorkflowDefinition $definition |
|
116 | 119 | * An optional workflow definition to bind the actions into |
117 | 120 | * @return array |
118 | 121 | */ |
@@ -164,7 +167,7 @@ discard block |
||
164 | 167 | * Create a workflow action based on a template |
165 | 168 | * |
166 | 169 | * @param string $name |
167 | - * @param array $template |
|
170 | + * @param array $actionTemplate |
|
168 | 171 | * @param WorkflowDefinition $definition |
169 | 172 | * @return WorkflowAction |
170 | 173 | */ |