@@ -33,6 +33,10 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected $underlay; |
35 | 35 | |
36 | + /** |
|
37 | + * @param ViewableData $item |
|
38 | + * @param ViewableData $inheritedScope |
|
39 | + */ |
|
36 | 40 | public function __construct($item, $overlay = null, $underlay = null, $inheritedScope = null) |
37 | 41 | { |
38 | 42 | parent::__construct($item, $inheritedScope); |
@@ -58,6 +62,10 @@ discard block |
||
58 | 62 | $this->underlay = $underlay ? $underlay : array(); |
59 | 63 | } |
60 | 64 | |
65 | + /** |
|
66 | + * @param string $interfaceToQuery |
|
67 | + * @param string $variableMethod |
|
68 | + */ |
|
61 | 69 | protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) |
62 | 70 | { |
63 | 71 | $implementers = ClassInfo::implementorsOf($interfaceToQuery); |
@@ -30,6 +30,9 @@ |
||
30 | 30 | */ |
31 | 31 | protected $cacheTemplate; |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $content |
|
35 | + */ |
|
33 | 36 | public function __construct($content, TemplateParser $parser = null) |
34 | 37 | { |
35 | 38 | if ($parser) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * Find the given folder or create it as a database record |
57 | 57 | * |
58 | 58 | * @param string $folderPath Directory path relative to assets root |
59 | - * @return Folder|null |
|
59 | + * @return null|\SilverStripe\ORM\DataObject |
|
60 | 60 | */ |
61 | 61 | public static function find_or_make($folderPath) { |
62 | 62 | // replace leading and trailing slashes |
@@ -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()) { |