@@ -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 | { |
@@ -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 |
@@ -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; |
@@ -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) |