@@ -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); |
@@ -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 | */ |
@@ -112,6 +112,7 @@ discard block |
||
112 | 112 | * |
113 | 113 | * @param data object |
114 | 114 | * @param integer |
115 | + * @param DataObject $object |
|
115 | 116 | * @return workflow definition |
116 | 117 | */ |
117 | 118 | |
@@ -313,7 +314,6 @@ discard block |
||
313 | 314 | /** |
314 | 315 | * Get items that the passed-in user has awaiting for them to action |
315 | 316 | * |
316 | - * @param Member $member |
|
317 | 317 | * @return DataList $userInstances |
318 | 318 | */ |
319 | 319 | public function userPendingItems(Member $user) { |
@@ -340,7 +340,6 @@ discard block |
||
340 | 340 | /** |
341 | 341 | * Get items that the passed-in user has submitted for workflow review |
342 | 342 | * |
343 | - * @param Member $member |
|
344 | 343 | * @return DataList $userInstances |
345 | 344 | */ |
346 | 345 | public function userSubmittedItems(Member $user) { |