@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * Create a DataObject from the given SQL row. |
116 | 116 | * |
117 | 117 | * @param array $row |
118 | - * @return DataObject |
|
118 | + * @return SilverStripe\Model\DataObject |
|
119 | 119 | */ |
120 | 120 | protected function createDataObject($row) { |
121 | 121 | // remove any composed fields |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * Note that for a ManyManyList, the item is never actually deleted, only |
266 | 266 | * the join table is affected. |
267 | 267 | * |
268 | - * @param DataObject $item |
|
268 | + * @param SilverStripe\Model\DataObject $item |
|
269 | 269 | */ |
270 | 270 | public function remove($item) { |
271 | 271 | if(!($item instanceof $this->dataClass)) { |
@@ -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 |
@@ -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() |
@@ -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 |
@@ -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(); |
@@ -331,7 +331,7 @@ |
||
331 | 331 | /** |
332 | 332 | * Gets viewable list of campaigns |
333 | 333 | * |
334 | - * @return SS_List |
|
334 | + * @return SilverStripe\Model\ArrayList |
|
335 | 335 | */ |
336 | 336 | protected function getListItems() { |
337 | 337 | return ChangeSet::get() |
@@ -88,7 +88,7 @@ |
||
88 | 88 | /** |
89 | 89 | * Get list of File dataobjects to import |
90 | 90 | * |
91 | - * @return DataList |
|
91 | + * @return SilverStripe\Model\DataList |
|
92 | 92 | */ |
93 | 93 | protected function getFileQuery() { |
94 | 94 | // Select all records which have a Filename value, but not FileFilename. |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * Find the given folder or create it as a database record |
46 | 46 | * |
47 | 47 | * @param string $folderPath Directory path relative to assets root |
48 | - * @return Folder|null |
|
48 | + * @return null|SilverStripe\Model\DataObject |
|
49 | 49 | */ |
50 | 50 | public static function find_or_make($folderPath) { |
51 | 51 | // replace leading and trailing slashes |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * Returns all children of this folder |
149 | 149 | * |
150 | - * @return DataList |
|
150 | + * @return SilverStripe\Model\DataList |
|
151 | 151 | */ |
152 | 152 | public function myChildren() { |
153 | 153 | return File::get()->filter("ParentID", $this->ID); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | /** |
199 | 199 | * Get the children of this folder that are also folders. |
200 | 200 | * |
201 | - * @return DataList |
|
201 | + * @return SilverStripe\Model\DataList |
|
202 | 202 | */ |
203 | 203 | public function ChildFolders() { |
204 | 204 | return Folder::get()->filter('ParentID', $this->ID); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
195 | - * @return ArrayList |
|
195 | + * @return SilverStripe\Model\ArrayList |
|
196 | 196 | */ |
197 | 197 | public function getComponents() { |
198 | 198 | return $this->config->getComponents(); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * |
204 | 204 | * @todo refactor this into GridFieldComponent |
205 | 205 | * |
206 | - * @param mixed $value |
|
206 | + * @param string $value |
|
207 | 207 | * @param string|array $castingDefinition |
208 | 208 | * |
209 | 209 | * @return mixed |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * |
291 | 291 | * @param array $properties |
292 | 292 | * |
293 | - * @return HTMLText |
|
293 | + * @return DBField |
|
294 | 294 | */ |
295 | 295 | public function FieldHolder($properties = array()) { |
296 | 296 | Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css'); |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | /** |
605 | 605 | * @param array $properties |
606 | 606 | * |
607 | - * @return HTMLText |
|
607 | + * @return DBField |
|
608 | 608 | */ |
609 | 609 | public function Field($properties = array()) { |
610 | 610 | $this->extend('onBeforeRender', $this); |
@@ -78,8 +78,8 @@ |
||
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Hook the result-set given into a Query class, suitable for use by SilverStripe. |
81 | - * @param mysqli_stmt $statement The related statement, if present |
|
82 | - * @param mysqli_result $metadata The metadata for this statement |
|
81 | + * @param \mysqli_stmt $statement The related statement, if present |
|
82 | + * @param \mysqli_result $metadata The metadata for this statement |
|
83 | 83 | */ |
84 | 84 | public function __construct($statement, $metadata) { |
85 | 85 | $this->statement = $statement; |
@@ -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([ |