@@ -27,6 +27,10 @@ |
||
| 27 | 27 | protected $parent; |
| 28 | 28 | protected $name; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param WorkflowField $parent |
|
| 32 | + * @param string $name |
|
| 33 | + */ |
|
| 30 | 34 | public function __construct($parent, $name) |
| 31 | 35 | { |
| 32 | 36 | $this->parent = $parent; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Symbiote\AdvancedWorkflow\Forms; |
| 4 | 4 | |
| 5 | 5 | use SilverStripe\Forms\Form; |
| 6 | -use FormResponse; |
|
| 7 | 6 | use SilverStripe\Control\Director; |
| 8 | 7 | use SilverStripe\Control\HTTPResponse; |
| 9 | 8 | use SilverStripe\Core\Convert; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * Which columns are handled by this component |
| 67 | 67 | * |
| 68 | 68 | * @param type $gridField |
| 69 | - * @return type |
|
| 69 | + * @return string[] |
|
| 70 | 70 | */ |
| 71 | 71 | public function getColumnsHandled($gridField) |
| 72 | 72 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * Which GridField actions are this component handling |
| 78 | 78 | * |
| 79 | 79 | * @param GridField $gridField |
| 80 | - * @return array |
|
| 80 | + * @return string[] |
|
| 81 | 81 | */ |
| 82 | 82 | public function getActions($gridField) |
| 83 | 83 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * Which columns are handled by this component |
| 74 | 74 | * |
| 75 | 75 | * @param type $gridField |
| 76 | - * @return type |
|
| 76 | + * @return string[] |
|
| 77 | 77 | */ |
| 78 | 78 | public function getColumnsHandled($gridField) |
| 79 | 79 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * @param DataObject $record |
| 86 | 86 | * @param string $columnName |
| 87 | 87 | * |
| 88 | - * @return string - the HTML for the column |
|
| 88 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText - the HTML for the column |
|
| 89 | 89 | */ |
| 90 | 90 | public function getColumnContent($gridField, $record, $columnName) |
| 91 | 91 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use SilverStripe\ORM\DataObject; |
| 9 | 9 | use SilverStripe\ORM\FieldType\DBDatetime; |
| 10 | 10 | use SilverStripe\Translatable\Model\Translatable; |
| 11 | -use SilverStripe\Security\Member; |
|
| 12 | 11 | use SilverStripe\Subsites\Extensions\SiteTreeSubsites; |
| 13 | 12 | use SilverStripe\Versioned\Versioned; |
| 14 | 13 | use Symbiote\AdvancedWorkflow\DataObjects\WorkflowAction; |
@@ -27,6 +27,10 @@ |
||
| 27 | 27 | protected $parent; |
| 28 | 28 | protected $name; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param WorkflowField $parent |
|
| 32 | + * @param string $name |
|
| 33 | + */ |
|
| 30 | 34 | public function __construct($parent, $name) |
| 31 | 35 | { |
| 32 | 36 | $this->parent = $parent; |
@@ -4,11 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use SilverStripe\Control\Controller; |
| 6 | 6 | use SilverStripe\Core\Extension; |
| 7 | -use SilverStripe\Core\Manifest\ModuleLoader; |
|
| 8 | 7 | use SilverStripe\Forms\Form; |
| 9 | 8 | use SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest; |
| 10 | 9 | use SilverStripe\ORM\DataObject; |
| 11 | -use SilverStripe\Security\Permission; |
|
| 12 | 10 | use SilverStripe\View\Requirements; |
| 13 | 11 | use Symbiote\AdvancedWorkflow\Extensions\WorkflowApplicable; |
| 14 | 12 | use Symbiote\AdvancedWorkflow\Services\WorkflowService; |
@@ -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) |