@@ -331,6 +331,7 @@ |
||
331 | 331 | * Overloaded to ensure the code is always descent. |
332 | 332 | * |
333 | 333 | * @param string |
334 | + * @param string $val |
|
334 | 335 | */ |
335 | 336 | public function setCode($val){ |
336 | 337 | $this->setField("Code", Convert::raw2url($val)); |
@@ -1563,7 +1563,7 @@ discard block |
||
1563 | 1563 | * This is likely to be customized for social sites etc. with a looser permission model. |
1564 | 1564 | * |
1565 | 1565 | * @param Member $member |
1566 | - * @return bool |
|
1566 | + * @return boolean|string |
|
1567 | 1567 | */ |
1568 | 1568 | public function canView($member = null) { |
1569 | 1569 | //get member |
@@ -1593,7 +1593,7 @@ discard block |
||
1593 | 1593 | * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions |
1594 | 1594 | * |
1595 | 1595 | * @param Member $member |
1596 | - * @return bool |
|
1596 | + * @return boolean|string |
|
1597 | 1597 | */ |
1598 | 1598 | public function canEdit($member = null) { |
1599 | 1599 | //get member |
@@ -1627,7 +1627,7 @@ discard block |
||
1627 | 1627 | * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions |
1628 | 1628 | * |
1629 | 1629 | * @param Member $member |
1630 | - * @return bool |
|
1630 | + * @return boolean|string |
|
1631 | 1631 | */ |
1632 | 1632 | public function canDelete($member = null) { |
1633 | 1633 | if(!($member instanceof Member)) { |
@@ -147,7 +147,7 @@ |
||
147 | 147 | * @param Form $form Optional: If passed, better error messages can be |
148 | 148 | * produced by using |
149 | 149 | * {@link Form::sessionMessage()} |
150 | - * @return bool|Member Returns FALSE if authentication fails, otherwise |
|
150 | + * @return Member|null Returns FALSE if authentication fails, otherwise |
|
151 | 151 | * the member object |
152 | 152 | * @see Security::setDefaultAdmin() |
153 | 153 | */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * Eg: $this->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation")) |
46 | 46 | * |
47 | 47 | * @param int $minScore The minimum number of character tests that must pass |
48 | - * @param array $testNames The names of the tests to perform |
|
48 | + * @param string[] $testNames The names of the tests to perform |
|
49 | 49 | * @return $this |
50 | 50 | */ |
51 | 51 | public function characterStrength($minScore, $testNames) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * will be checked for the current user |
122 | 122 | * @param bool $strict Use "strict" checking (which means a permission |
123 | 123 | * will be granted if the key does not exist at all)? |
124 | - * @return int|bool The ID of the permission record if the permission |
|
124 | + * @return boolean|string The ID of the permission record if the permission |
|
125 | 125 | * exists; FALSE otherwise. If "strict" checking is |
126 | 126 | * disabled, TRUE will be returned if the permission does not exist at all. |
127 | 127 | */ |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param string $arg Optional argument (e.g. a permissions for a specific page) |
160 | 160 | * @param bool $strict Use "strict" checking (which means a permission |
161 | 161 | * will be granted if the key does not exist at all)? |
162 | - * @return int|bool The ID of the permission record if the permission |
|
162 | + * @return boolean|string The ID of the permission record if the permission |
|
163 | 163 | * exists; FALSE otherwise. If "strict" checking is |
164 | 164 | * disabled, TRUE will be returned if the permission does not exist at all. |
165 | 165 | */ |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * Get permissions |
60 | 60 | * |
61 | - * @return array Associative array of permissions in this permission |
|
61 | + * @return string Associative array of permissions in this permission |
|
62 | 62 | * group. The array indicies are the permission codes as |
63 | 63 | * used in {@link Permission::check()}. The value is |
64 | 64 | * suitable for using in an interface. |
@@ -76,6 +76,9 @@ |
||
76 | 76 | return $this->token; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $token |
|
81 | + */ |
|
79 | 82 | public function setToken($token) { |
80 | 83 | $this->token = $token; |
81 | 84 | } |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * Combine the given forms into a formset with a tabbed interface |
508 | 508 | * |
509 | 509 | * @param array $forms List of LoginForm instances |
510 | - * @return string |
|
510 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
511 | 511 | */ |
512 | 512 | protected function generateLoginFormSet($forms) { |
513 | 513 | $viewData = new ArrayData(array( |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | /** |
1083 | 1083 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
1084 | 1084 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
1085 | - * @param $flag True or false |
|
1085 | + * @param boolean $flag True or false |
|
1086 | 1086 | */ |
1087 | 1087 | public static function set_ignore_disallowed_actions($flag) { |
1088 | 1088 | self::$ignore_disallowed_actions = $flag; |
@@ -160,7 +160,7 @@ |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
163 | - * @param string|array $content If passed as an array, values will be concatenated with a comma. |
|
163 | + * @param string $content If passed as an array, values will be concatenated with a comma. |
|
164 | 164 | * @return array |
165 | 165 | */ |
166 | 166 | public static function getHTMLChunks($content) { |