@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | /** |
604 | 604 | * Does this action restrict the publishing of a document? |
605 | 605 | * |
606 | - * @return boolean |
|
606 | + * @return boolean|null |
|
607 | 607 | */ |
608 | 608 | public function canPublishTarget() |
609 | 609 | { |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | * Get the current set of transitions that are valid for the current workflow state, |
617 | 617 | * and are available to the current user. |
618 | 618 | * |
619 | - * @return array |
|
619 | + * @return ArrayList |
|
620 | 620 | */ |
621 | 621 | public function validTransitions() |
622 | 622 | { |
@@ -750,9 +750,9 @@ discard block |
||
750 | 750 | * to view WorkflowInstances within GridFields |
751 | 751 | * @see {@link $this->userHasAccess()} |
752 | 752 | * |
753 | - * @param number $recordID |
|
753 | + * @param integer $recordID |
|
754 | 754 | * @param number $userID |
755 | - * @param number $wasPublished |
|
755 | + * @param integer $wasPublished |
|
756 | 756 | * @return boolean |
757 | 757 | */ |
758 | 758 | public function getVersionedConnection($recordID, $userID, $wasPublished = 0) |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | /** |
790 | 790 | * Tells us if $member has had permissions over some part of the current WorkflowInstance. |
791 | 791 | * |
792 | - * @param $member |
|
792 | + * @param Member $member |
|
793 | 793 | * @return WorkflowAction|boolean |
794 | 794 | */ |
795 | 795 | public function getMostRecentActionForUser($member = null) |
@@ -82,6 +82,7 @@ discard block |
||
82 | 82 | * Will recursively query parent elements until it finds one, if available |
83 | 83 | * |
84 | 84 | * @param DataObject $dataObject |
85 | + * @return null|DataObject |
|
85 | 86 | */ |
86 | 87 | public function getDefinitionFor(DataObject $dataObject) |
87 | 88 | { |
@@ -140,6 +141,7 @@ discard block |
||
140 | 141 | * main workflow definition. |
141 | 142 | * |
142 | 143 | * @param DataObject object |
144 | + * @param DataObject $object |
|
143 | 145 | * @return array |
144 | 146 | */ |
145 | 147 | |
@@ -170,7 +172,7 @@ discard block |
||
170 | 172 | * |
171 | 173 | * @param mixed $item |
172 | 174 | * @param bool $includeComplete |
173 | - * @return WorkflowInstance|null |
|
175 | + * @return DataObject|null |
|
174 | 176 | */ |
175 | 177 | public function getWorkflowFor($item, $includeComplete = false) |
176 | 178 | { |
@@ -194,6 +196,7 @@ discard block |
||
194 | 196 | /** |
195 | 197 | * Get all the workflow action instances for an item |
196 | 198 | * |
199 | + * @param DataObject $item |
|
197 | 200 | * @return DataList|null |
198 | 201 | */ |
199 | 202 | public function getWorkflowHistoryFor($item, $limit = null) |
@@ -333,7 +336,6 @@ discard block |
||
333 | 336 | /** |
334 | 337 | * Get items that the passed-in user has awaiting for them to action |
335 | 338 | * |
336 | - * @param Member $member |
|
337 | 339 | * @return DataList |
338 | 340 | */ |
339 | 341 | public function userPendingItems(Member $user) |
@@ -361,7 +363,6 @@ discard block |
||
361 | 363 | /** |
362 | 364 | * Get items that the passed-in user has submitted for workflow review |
363 | 365 | * |
364 | - * @param Member $member |
|
365 | 366 | * @return DataList |
366 | 367 | */ |
367 | 368 | public function userSubmittedItems(Member $user) |