@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * - required fields from the Context Object |
| 95 | 95 | * - Actions from the connected WorkflowTransitions |
| 96 | 96 | * |
| 97 | - * @return Form |
|
| 97 | + * @return null|FrontendWorkflowForm |
|
| 98 | 98 | */ |
| 99 | 99 | public function Form() |
| 100 | 100 | { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * |
| 151 | 151 | * @param array $data |
| 152 | 152 | * @param Form $form |
| 153 | - * @param SS_HTTPRequest $request |
|
| 153 | + * @param HTTPRequest $request |
|
| 154 | 154 | * @throws Exception |
| 155 | 155 | */ |
| 156 | 156 | public function doFrontEndAction(array $data, Form $form, HTTPRequest $request) |
@@ -57,6 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * Gets fields for when this is part of an active workflow |
| 60 | + * @param \SilverStripe\Forms\FieldList $fields |
|
| 60 | 61 | */ |
| 61 | 62 | public function updateWorkflowFields($fields) |
| 62 | 63 | { |
@@ -74,6 +75,9 @@ discard block |
||
| 74 | 75 | } |
| 75 | 76 | } |
| 76 | 77 | |
| 78 | + /** |
|
| 79 | + * @param \SilverStripe\Forms\FieldList $fields |
|
| 80 | + */ |
|
| 77 | 81 | public function updateFrontendWorkflowFields($fields) |
| 78 | 82 | { |
| 79 | 83 | if ($this->BaseAction()->AllowCommenting) { |
@@ -108,6 +112,9 @@ discard block |
||
| 108 | 112 | return $obj; |
| 109 | 113 | } |
| 110 | 114 | |
| 115 | + /** |
|
| 116 | + * @param \SilverStripe\Forms\FieldList $actions |
|
| 117 | + */ |
|
| 111 | 118 | public function updateFrontEndWorkflowActions($actions) |
| 112 | 119 | { |
| 113 | 120 | $ba = $this->BaseAction(); |
@@ -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) |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * |
| 218 | 218 | * @param Member $member |
| 219 | 219 | * @param array $context |
| 220 | - * @return bool |
|
| 220 | + * @return boolean|string |
|
| 221 | 221 | */ |
| 222 | 222 | public function canCreate($member = null, $context = array()) |
| 223 | 223 | { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | 228 | * @param Member $member |
| 229 | - * @return bool |
|
| 229 | + * @return boolean|string |
|
| 230 | 230 | */ |
| 231 | 231 | public function canEdit($member = null) |
| 232 | 232 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | 237 | * @param Member $member |
| 238 | - * @return bool |
|
| 238 | + * @return boolean|string |
|
| 239 | 239 | */ |
| 240 | 240 | public function canDelete($member = null) |
| 241 | 241 | { |
@@ -535,7 +535,7 @@ |
||
| 535 | 535 | * disabled. |
| 536 | 536 | * |
| 537 | 537 | * @param Member $member |
| 538 | - * @return bool|null |
|
| 538 | + * @return false|null |
|
| 539 | 539 | */ |
| 540 | 540 | public function canEdit($member) |
| 541 | 541 | { |
@@ -33,6 +33,10 @@ |
||
| 33 | 33 | |
| 34 | 34 | protected $definition; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $name |
|
| 38 | + * @param string $title |
|
| 39 | + */ |
|
| 36 | 40 | public function __construct($name, $title, WorkflowDefinition $definition) |
| 37 | 41 | { |
| 38 | 42 | $this->definition = $definition; |
@@ -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 | { |