@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * Execute this query. |
118 | 118 | * |
119 | - * @return SS_Query |
|
119 | + * @return SilverStripe\Model\Connect\SS_Query |
|
120 | 120 | */ |
121 | 121 | public function execute() { |
122 | 122 | $sql = $this->sql($parameters); |
@@ -127,7 +127,6 @@ discard block |
||
127 | 127 | * Copies the query parameters contained in this object to another |
128 | 128 | * SQLExpression |
129 | 129 | * |
130 | - * @param SQLExpression $expression The object to copy properties to |
|
131 | 130 | */ |
132 | 131 | protected function copyTo(SQLExpression $object) { |
133 | 132 | $target = array_keys(get_object_vars($object)); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * Find version of this object in the given stage |
133 | 133 | * |
134 | 134 | * @param string $stage |
135 | - * @return Versioned|DataObject |
|
135 | + * @return DataObject|null |
|
136 | 136 | */ |
137 | 137 | protected function getObjectInStage($stage) { |
138 | 138 | return Versioned::get_by_stage($this->ObjectClass, $stage)->byID($this->ObjectID); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Find latest version of this object |
143 | 143 | * |
144 | - * @return Versioned|DataObject |
|
144 | + * @return DataObject|null |
|
145 | 145 | */ |
146 | 146 | protected function getObjectLatestVersion() { |
147 | 147 | return Versioned::get_latest_version($this->ObjectClass, $this->ObjectID); |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | * Get the ChangeSetItems that reference a passed DataObject |
326 | 326 | * |
327 | 327 | * @param DataObject $object |
328 | - * @return DataList |
|
328 | + * @return SilverStripe\Model\DataList |
|
329 | 329 | */ |
330 | 330 | public static function get_for_object($object) { |
331 | 331 | return ChangeSetItem::get()->filter([ |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | * |
340 | 340 | * @param int $objectID The ID of the object |
341 | 341 | * @param string $objectClass The class of the object (or any parent class) |
342 | - * @return DataList |
|
342 | + * @return SilverStripe\Model\DataList |
|
343 | 343 | */ |
344 | 344 | public static function get_for_object_by_id($objectID, $objectClass) { |
345 | 345 | return ChangeSetItem::get()->filter([ |
@@ -1062,7 +1062,7 @@ discard block |
||
1062 | 1062 | /** |
1063 | 1063 | * Find objects in the given relationships, merging them into the given list |
1064 | 1064 | * |
1065 | - * @param array $source Config property to extract relationships from |
|
1065 | + * @param string $source Config property to extract relationships from |
|
1066 | 1066 | * @param bool $recursive True if recursive |
1067 | 1067 | * @param ArrayList $list Optional list to add items to |
1068 | 1068 | * @return ArrayList The list |
@@ -1152,7 +1152,7 @@ discard block |
||
1152 | 1152 | * - canEdit() returns false |
1153 | 1153 | * |
1154 | 1154 | * @param Member $member |
1155 | - * @return bool True if the current user can publish this record. |
|
1155 | + * @return null|boolean True if the current user can publish this record. |
|
1156 | 1156 | */ |
1157 | 1157 | public function canPublish($member = null) { |
1158 | 1158 | // Skip if invoked by extendedCan() |
@@ -1182,7 +1182,7 @@ discard block |
||
1182 | 1182 | /** |
1183 | 1183 | * Check if the current user can delete this record from live |
1184 | 1184 | * |
1185 | - * @param null $member |
|
1185 | + * @param Member|null $member |
|
1186 | 1186 | * @return mixed |
1187 | 1187 | */ |
1188 | 1188 | public function canUnpublish($member = null) { |
@@ -1215,7 +1215,7 @@ discard block |
||
1215 | 1215 | * If extended, ensure that both canDelete and canUnpublish are extended also |
1216 | 1216 | * |
1217 | 1217 | * @param Member $member |
1218 | - * @return bool |
|
1218 | + * @return null|boolean |
|
1219 | 1219 | */ |
1220 | 1220 | public function canArchive($member = null) { |
1221 | 1221 | // Skip if invoked by extendedCan() |
@@ -1255,7 +1255,7 @@ discard block |
||
1255 | 1255 | * Check if the user can revert this record to live |
1256 | 1256 | * |
1257 | 1257 | * @param Member $member |
1258 | - * @return bool |
|
1258 | + * @return null|boolean |
|
1259 | 1259 | */ |
1260 | 1260 | public function canRevertToLive($member = null) { |
1261 | 1261 | $owner = $this->owner; |
@@ -1292,7 +1292,7 @@ discard block |
||
1292 | 1292 | * Extend permissions to include additional security for objects that are not published to live. |
1293 | 1293 | * |
1294 | 1294 | * @param Member $member |
1295 | - * @return bool|null |
|
1295 | + * @return false|null |
|
1296 | 1296 | */ |
1297 | 1297 | public function canView($member = null) { |
1298 | 1298 | // Invoke default version-gnostic canView |
@@ -1437,7 +1437,7 @@ discard block |
||
1437 | 1437 | /** |
1438 | 1438 | * Get the latest published DataObject. |
1439 | 1439 | * |
1440 | - * @return DataObject |
|
1440 | + * @return string |
|
1441 | 1441 | */ |
1442 | 1442 | public function latestPublished() { |
1443 | 1443 | // Get the root data object class - this will have the version field |
@@ -2418,7 +2418,7 @@ discard block |
||
2418 | 2418 | /** |
2419 | 2419 | * Returns an array of possible stages. |
2420 | 2420 | * |
2421 | - * @return array |
|
2421 | + * @return string[] |
|
2422 | 2422 | */ |
2423 | 2423 | public function getVersionedStages() { |
2424 | 2424 | if($this->hasStages()) { |
@@ -87,6 +87,7 @@ discard block |
||
87 | 87 | * but is necessary for retain compatibility with password hashed |
88 | 88 | * with flawed algorithms - see {@link PasswordEncryptor_LegacyPHPHash} and |
89 | 89 | * {@link PasswordEncryptor_Blowfish} |
90 | + * @param string $password |
|
90 | 91 | */ |
91 | 92 | public function check($hash, $password, $salt = null, $member = null) { |
92 | 93 | return $hash === $this->encrypt($password, $salt, $member); |
@@ -129,8 +130,7 @@ discard block |
||
129 | 130 | /** |
130 | 131 | * Gets the cost that is set for the blowfish algorithm |
131 | 132 | * |
132 | - * @param int $cost |
|
133 | - * @return null |
|
133 | + * @return integer |
|
134 | 134 | */ |
135 | 135 | public static function get_cost() { |
136 | 136 | return self::$cost; |
@@ -242,6 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | /** |
244 | 244 | * self::$cost param is forced to be two digits with leading zeroes for ints 4-9 |
245 | + * @param string $password |
|
245 | 246 | */ |
246 | 247 | public function salt($password, $member = null) { |
247 | 248 | $generator = new RandomGenerator(); |
@@ -728,7 +728,7 @@ discard block |
||
728 | 728 | /** |
729 | 729 | * All custom objects with the same number. E.g. 'Page 1' owns 'Custom 1' |
730 | 730 | * |
731 | - * @return DataList |
|
731 | + * @return SilverStripe\Model\DataList |
|
732 | 732 | */ |
733 | 733 | public function Custom() { |
734 | 734 | $title = str_replace('Page', 'Custom', $this->Title); |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | /** |
783 | 783 | * All pages with the same number. E.g. 'Page 1' owns 'Custom 1' |
784 | 784 | * |
785 | - * @return DataList |
|
785 | + * @return SilverStripe\Model\DataList |
|
786 | 786 | */ |
787 | 787 | public function Pages() { |
788 | 788 | $title = str_replace('Custom', 'Page', $this->Title); |