@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @return string |
|
77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
78 | 78 | */ |
79 | 79 | public function InternallyLabelledField() { |
80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -67,6 +67,10 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected $name; |
69 | 69 | |
70 | + /** |
|
71 | + * @param Controller|null $controller |
|
72 | + * @param string $name |
|
73 | + */ |
|
70 | 74 | public function __construct($controller, $name) |
71 | 75 | { |
72 | 76 | parent::__construct(); |
@@ -487,7 +491,7 @@ discard block |
||
487 | 491 | /** |
488 | 492 | * Find all anchors available on the given page. |
489 | 493 | * |
490 | - * @return array |
|
494 | + * @return string |
|
491 | 495 | * @throws SS_HTTPResponse_Exception |
492 | 496 | */ |
493 | 497 | public function getanchors() |
@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @return string |
|
77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
78 | 78 | */ |
79 | 79 | public function InternallyLabelledField() { |
80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @return string |
|
77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
78 | 78 | */ |
79 | 79 | public function InternallyLabelledField() { |
80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Remove a filter from the query |
100 | 100 | * |
101 | - * @param string|array $fieldExpression The predicate of the condition to remove |
|
101 | + * @param string|null $fieldExpression The predicate of the condition to remove |
|
102 | 102 | * (ignoring parameters). The expression will be considered a match if it's |
103 | 103 | * contained within any other predicate. |
104 | 104 | * @return DataQuery Self reference |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * Ensure that the query is ready to execute. |
179 | 179 | * |
180 | - * @param array|null $queriedColumns Any columns to filter the query by |
|
180 | + * @param string[] $queriedColumns Any columns to filter the query by |
|
181 | 181 | * @return SQLSelect The finalised sql query |
182 | 182 | */ |
183 | 183 | public function getFinalisedQuery($queriedColumns = null) { |
@@ -1065,7 +1065,7 @@ discard block |
||
1065 | 1065 | /** |
1066 | 1066 | * Find objects in the given relationships, merging them into the given list |
1067 | 1067 | * |
1068 | - * @param array $source Config property to extract relationships from |
|
1068 | + * @param string $source Config property to extract relationships from |
|
1069 | 1069 | * @param bool $recursive True if recursive |
1070 | 1070 | * @param ArrayList $list Optional list to add items to |
1071 | 1071 | * @return ArrayList The list |
@@ -1185,7 +1185,7 @@ discard block |
||
1185 | 1185 | /** |
1186 | 1186 | * Check if the current user can delete this record from live |
1187 | 1187 | * |
1188 | - * @param null $member |
|
1188 | + * @param Member|null $member |
|
1189 | 1189 | * @return mixed |
1190 | 1190 | */ |
1191 | 1191 | public function canUnpublish($member = null) { |
@@ -1295,7 +1295,7 @@ discard block |
||
1295 | 1295 | * Extend permissions to include additional security for objects that are not published to live. |
1296 | 1296 | * |
1297 | 1297 | * @param Member $member |
1298 | - * @return bool|null |
|
1298 | + * @return false|null |
|
1299 | 1299 | */ |
1300 | 1300 | public function canView($member = null) { |
1301 | 1301 | // Invoke default version-gnostic canView |
@@ -1371,7 +1371,7 @@ discard block |
||
1371 | 1371 | * |
1372 | 1372 | * @param string $stage |
1373 | 1373 | * @param Member $member |
1374 | - * @return bool |
|
1374 | + * @return boolean|string |
|
1375 | 1375 | */ |
1376 | 1376 | public function canViewStage($stage = 'Live', $member = null) { |
1377 | 1377 | $oldMode = Versioned::get_reading_mode(); |
@@ -1436,7 +1436,7 @@ discard block |
||
1436 | 1436 | /** |
1437 | 1437 | * Determines if the current draft version is the same as live |
1438 | 1438 | * |
1439 | - * @return bool |
|
1439 | + * @return string |
|
1440 | 1440 | */ |
1441 | 1441 | public function latestPublished() { |
1442 | 1442 | // Get the root data object class - this will have the version field |
@@ -2433,7 +2433,7 @@ discard block |
||
2433 | 2433 | /** |
2434 | 2434 | * Returns an array of possible stages. |
2435 | 2435 | * |
2436 | - * @return array |
|
2436 | + * @return string[] |
|
2437 | 2437 | */ |
2438 | 2438 | public function getVersionedStages() { |
2439 | 2439 | if($this->hasStages()) { |
@@ -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; |
@@ -114,6 +114,8 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * Override the function that constructs the result arrays to also prepare a 'php' item in the array |
117 | + * @param string $matchrule |
|
118 | + * @param string $name |
|
117 | 119 | */ |
118 | 120 | function construct($matchrule, $name, $arguments = null) { |
119 | 121 | $res = parent::construct($matchrule, $name, $arguments); |
@@ -175,9 +177,9 @@ discard block |
||
175 | 177 | |
176 | 178 | /** |
177 | 179 | * Ensures that the arguments to addOpenBlock and addClosedBlock are valid |
178 | - * @param $name |
|
179 | - * @param $callable |
|
180 | - * @param $type |
|
180 | + * @param string $name |
|
181 | + * @param callable $callable |
|
182 | + * @param string $type |
|
181 | 183 | * @throws InvalidArgumentException |
182 | 184 | */ |
183 | 185 | protected function validateExtensionBlock($name, $callable, $type) { |
@@ -262,6 +264,7 @@ discard block |
||
262 | 264 | * The basic generated PHP of LookupStep and LastLookupStep is the same, except that LookupStep calls 'obj' to |
263 | 265 | * get the next ViewableData in the sequence, and LastLookupStep calls different methods (XML_val, hasValue, obj) |
264 | 266 | * depending on the context the lookup is used in. |
267 | + * @param string $method |
|
265 | 268 | */ |
266 | 269 | function Lookup_AddLookupStep(&$res, $sub, $method) { |
267 | 270 | $res['LookupSteps'][] = $sub; |
@@ -1174,6 +1177,7 @@ discard block |
||
1174 | 1177 | |
1175 | 1178 | /** |
1176 | 1179 | * @param string $code |
1180 | + * @param string $templateName |
|
1177 | 1181 | * @return string $code |
1178 | 1182 | */ |
1179 | 1183 | protected function includeDebuggingComments($code, $templateName) { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * Gets the combined configuration of all LeafAndMain subclasses required by the client app. |
254 | 254 | * |
255 | - * @return array |
|
255 | + * @return string |
|
256 | 256 | * |
257 | 257 | * WARNING: Experimental API |
258 | 258 | */ |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | * |
692 | 692 | * @param string $url |
693 | 693 | * @param int $code |
694 | - * @return HTTPResponse|string |
|
694 | + * @return string|null |
|
695 | 695 | */ |
696 | 696 | public function redirect($url, $code=302) { |
697 | 697 | if($this->getRequest()->isAjax()) { |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | * {@link SSViewer::get_templates_by_class()} |
970 | 970 | * |
971 | 971 | * @param string $suffix |
972 | - * @return array |
|
972 | + * @return string |
|
973 | 973 | */ |
974 | 974 | public function getTemplatesWithSuffix($suffix) { |
975 | 975 | $templates = SSViewer::get_templates_by_class(get_class($this), $suffix, __CLASS__); |
@@ -2039,7 +2039,7 @@ discard block |
||
2039 | 2039 | } |
2040 | 2040 | |
2041 | 2041 | /** |
2042 | - * @return String |
|
2042 | + * @return DBField |
|
2043 | 2043 | */ |
2044 | 2044 | public function Locale() { |
2045 | 2045 | return DBField::create_field('Locale', i18n::get_locale()); |