@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | /** |
610 | 610 | * Does this action restrict the publishing of a document? |
611 | 611 | * |
612 | - * @return boolean |
|
612 | + * @return boolean|null |
|
613 | 613 | */ |
614 | 614 | public function canPublishTarget() |
615 | 615 | { |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | * Get the current set of transitions that are valid for the current workflow state, |
623 | 623 | * and are available to the current user. |
624 | 624 | * |
625 | - * @return array |
|
625 | + * @return ArrayList |
|
626 | 626 | */ |
627 | 627 | public function validTransitions() |
628 | 628 | { |
@@ -756,9 +756,9 @@ discard block |
||
756 | 756 | * view WorkflowInstances within GridFields |
757 | 757 | * @see {@link $this->userHasAccess()} |
758 | 758 | * |
759 | - * @param number $recordID |
|
759 | + * @param integer $recordID |
|
760 | 760 | * @param number $userID |
761 | - * @param number $wasPublished |
|
761 | + * @param integer $wasPublished |
|
762 | 762 | * @return boolean |
763 | 763 | */ |
764 | 764 | public function getVersionedConnection($recordID, $userID, $wasPublished = 0) |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | /** |
796 | 796 | * Tells us if $member has had permissions over some part of the current WorkflowInstance. |
797 | 797 | * |
798 | - * @param $member |
|
798 | + * @param Member $member |
|
799 | 799 | * @return WorkflowAction|boolean |
800 | 800 | */ |
801 | 801 | public function getMostRecentActionForUser($member = null) |
@@ -81,6 +81,7 @@ discard block |
||
81 | 81 | * Will recursively query parent elements until it finds one, if available |
82 | 82 | * |
83 | 83 | * @param DataObject $dataObject |
84 | + * @return null|DataObject |
|
84 | 85 | */ |
85 | 86 | public function getDefinitionFor(DataObject $dataObject) |
86 | 87 | { |
@@ -138,6 +139,7 @@ discard block |
||
138 | 139 | * workflow definition. |
139 | 140 | * |
140 | 141 | * @param DataObject object |
142 | + * @param DataObject $object |
|
141 | 143 | * @return array |
142 | 144 | */ |
143 | 145 | |
@@ -168,7 +170,7 @@ discard block |
||
168 | 170 | * |
169 | 171 | * @param mixed $item |
170 | 172 | * @param bool $includeComplete |
171 | - * @return WorkflowInstance|null |
|
173 | + * @return DataObject|null |
|
172 | 174 | */ |
173 | 175 | public function getWorkflowFor($item, $includeComplete = false) |
174 | 176 | { |
@@ -191,6 +193,7 @@ discard block |
||
191 | 193 | /** |
192 | 194 | * Get all the workflow action instances for an item |
193 | 195 | * |
196 | + * @param DataObject $item |
|
194 | 197 | * @return DataList|null |
195 | 198 | */ |
196 | 199 | public function getWorkflowHistoryFor($item, $limit = null) |
@@ -330,7 +333,6 @@ discard block |
||
330 | 333 | /** |
331 | 334 | * Get items that the passed-in user has awaiting for them to action |
332 | 335 | * |
333 | - * @param Member $member |
|
334 | 336 | * @return DataList |
335 | 337 | */ |
336 | 338 | public function userPendingItems(Member $user) |
@@ -358,7 +360,6 @@ discard block |
||
358 | 360 | /** |
359 | 361 | * Get items that the passed-in user has submitted for workflow review |
360 | 362 | * |
361 | - * @param Member $member |
|
362 | 363 | * @return DataList |
363 | 364 | */ |
364 | 365 | public function userSubmittedItems(Member $user) |
@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected $structure; |
85 | 85 | |
86 | + /** |
|
87 | + * @param string $name |
|
88 | + */ |
|
86 | 89 | public function __construct($name, $description = '', $version = '0.0', $remindDays = 0, $sort = 0) |
87 | 90 | { |
88 | 91 | $this->name = $name; |
@@ -131,7 +134,7 @@ discard block |
||
131 | 134 | * Creates the relevant data objects for this structure, returning an array |
132 | 135 | * of actions in the order they've been created |
133 | 136 | * |
134 | - * @param WorkflowDefinition $definitino |
|
137 | + * @param WorkflowDefinition $definition |
|
135 | 138 | * An optional workflow definition to bind the actions into |
136 | 139 | * @return array |
137 | 140 | */ |
@@ -183,7 +186,7 @@ discard block |
||
183 | 186 | * Create a workflow action based on a template |
184 | 187 | * |
185 | 188 | * @param string $name |
186 | - * @param array $template |
|
189 | + * @param array $actionTemplate |
|
187 | 190 | * @param WorkflowDefinition $definition |
188 | 191 | * @return WorkflowAction |
189 | 192 | * @throws Exception |