@@ -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; |
@@ -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; |
@@ -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 | { |
@@ -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) |
@@ -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 |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @param string $name. If set, a single-value array comprising a WorkflowTemplate object who's first |
| 26 | 26 | * constructor param matches $name is returned. |
| 27 | + * @param string $name |
|
| 27 | 28 | * @return WorkflowTemplate|WorkflowTemplate[] |
| 28 | 29 | */ |
| 29 | 30 | public function getImportedWorkflows($name = null) |
@@ -256,9 +256,8 @@ discard block |
||
| 256 | 256 | /** |
| 257 | 257 | * Get WorkflowInstance Target objects to show for users in initial gridfield(s) |
| 258 | 258 | * |
| 259 | - * @param Member $member |
|
| 260 | 259 | * @param string $fieldName The name of the gridfield that determines which dataset to return |
| 261 | - * @return DataList |
|
| 260 | + * @return ArrayList |
|
| 262 | 261 | * @todo Add the ability to see embargo/expiry dates in report-gridfields at-a-glance if QueuedJobs module installed |
| 263 | 262 | */ |
| 264 | 263 | public function userObjects(Member $user, $fieldName) |
@@ -334,7 +333,7 @@ discard block |
||
| 334 | 333 | /** |
| 335 | 334 | * Required so we can simply change the visible label of the "Import" button and lose some redundant form-fields. |
| 336 | 335 | * |
| 337 | - * @return Form |
|
| 336 | + * @return null|\SilverStripe\Forms\Form |
|
| 338 | 337 | */ |
| 339 | 338 | public function ImportForm() |
| 340 | 339 | { |
@@ -158,6 +158,9 @@ |
||
| 158 | 158 | return $this->returnResponse($form); |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | + /** |
|
| 162 | + * @param Form $form |
|
| 163 | + */ |
|
| 161 | 164 | protected function returnResponse($form) |
| 162 | 165 | { |
| 163 | 166 | if ($this->owner instanceof GridFieldDetailForm_ItemRequest) { |
@@ -5,11 +5,9 @@ |
||
| 5 | 5 | use SilverStripe\Control\Controller; |
| 6 | 6 | use SilverStripe\Control\HTTPRequest; |
| 7 | 7 | use SilverStripe\Core\Extension; |
| 8 | -use SilverStripe\Core\Manifest\ModuleLoader; |
|
| 9 | 8 | use SilverStripe\Forms\Form; |
| 10 | 9 | use SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest; |
| 11 | 10 | use SilverStripe\ORM\DataObject; |
| 12 | -use SilverStripe\Security\Permission; |
|
| 13 | 11 | use SilverStripe\View\Requirements; |
| 14 | 12 | use Symbiote\AdvancedWorkflow\Extensions\WorkflowApplicable; |
| 15 | 13 | use Symbiote\AdvancedWorkflow\Services\WorkflowService; |
@@ -353,6 +353,7 @@ discard block |
||
| 353 | 353 | /** |
| 354 | 354 | * Gets the history of a workflow instance |
| 355 | 355 | * |
| 356 | + * @param integer $limit |
|
| 356 | 357 | * @return DataList |
| 357 | 358 | */ |
| 358 | 359 | public function getWorkflowHistory($limit = null) |
@@ -414,7 +415,7 @@ discard block |
||
| 414 | 415 | /** |
| 415 | 416 | * Can only edit content that's NOT in another person's content changeset |
| 416 | 417 | * |
| 417 | - * @return bool |
|
| 418 | + * @return boolean|null |
|
| 418 | 419 | */ |
| 419 | 420 | public function canEdit($member) |
| 420 | 421 | { |