@@ -46,7 +46,6 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * Injector injection point for database controller |
| 48 | 48 | * |
| 49 | - * @param SS_Database $connector |
|
| 50 | 49 | */ |
| 51 | 50 | public function setDatabase(SS_Database $database) { |
| 52 | 51 | $this->database = $database; |
@@ -483,7 +482,7 @@ discard block |
||
| 483 | 482 | /** |
| 484 | 483 | * Given an index spec determines the index type |
| 485 | 484 | * |
| 486 | - * @param array|string $spec |
|
| 485 | + * @param string $spec |
|
| 487 | 486 | * @return string |
| 488 | 487 | */ |
| 489 | 488 | protected function determineIndexType($spec) { |
@@ -551,7 +550,7 @@ discard block |
||
| 551 | 550 | /** |
| 552 | 551 | * Returns true if the given table is exists in the current database |
| 553 | 552 | * |
| 554 | - * @param string $table Name of table to check |
|
| 553 | + * @param string $tableName Name of table to check |
|
| 555 | 554 | * @return boolean Flag indicating existence of table |
| 556 | 555 | */ |
| 557 | 556 | abstract public function hasTable($tableName); |
@@ -324,7 +324,7 @@ |
||
| 324 | 324 | * @param int $errorLevel |
| 325 | 325 | * @param string $sql |
| 326 | 326 | * @param array $parameters |
| 327 | - * @return \PDOQuery |
|
| 327 | + * @return PDOQuery|null |
|
| 328 | 328 | */ |
| 329 | 329 | protected function prepareResults($statement, $errorLevel, $sql, $parameters = array()) { |
| 330 | 330 | |
@@ -79,9 +79,15 @@ |
||
| 79 | 79 | public function can($member) { |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param \Member $member |
|
| 84 | + */ |
|
| 82 | 85 | public function canEdit($member) { |
| 83 | 86 | } |
| 84 | 87 | |
| 88 | + /** |
|
| 89 | + * @param \Member $member |
|
| 90 | + */ |
|
| 85 | 91 | public function canDelete($member) { |
| 86 | 92 | } |
| 87 | 93 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * Returns a new DataList instance with the specified query parameter assigned |
| 173 | 173 | * |
| 174 | 174 | * @param string|array $keyOrArray Either the single key to set, or an array of key value pairs to set |
| 175 | - * @param mixed $val If $keyOrArray is not an array, this is the value to set |
|
| 175 | + * @param string $val If $keyOrArray is not an array, this is the value to set |
|
| 176 | 176 | * @return static |
| 177 | 177 | */ |
| 178 | 178 | public function setDataQueryParam($keyOrArray, $val = null) { |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | * Check if the given field specification could be interpreted as an unquoted relation name |
| 536 | 536 | * |
| 537 | 537 | * @param string $field |
| 538 | - * @return bool |
|
| 538 | + * @return integer |
|
| 539 | 539 | */ |
| 540 | 540 | protected function isValidRelationName($field) { |
| 541 | 541 | return preg_match('/^[A-Z0-9._]+$/i', $field); |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | * @param int $order A numerical index to control the order that joins are added to the query; lower order values |
| 651 | 651 | * will cause the query to appear first. The default is 20, and joins created automatically by the |
| 652 | 652 | * ORM have a value of 10. |
| 653 | - * @param array $parameters Any additional parameters if the join is a parameterised subquery |
|
| 653 | + * @param string[] $parameters Any additional parameters if the join is a parameterised subquery |
|
| 654 | 654 | * @return DataList |
| 655 | 655 | */ |
| 656 | 656 | public function innerJoin($table, $onClause, $alias = null, $order = 20, $parameters = array()) { |
@@ -668,7 +668,7 @@ discard block |
||
| 668 | 668 | * @param int $order A numerical index to control the order that joins are added to the query; lower order values |
| 669 | 669 | * will cause the query to appear first. The default is 20, and joins created automatically by the |
| 670 | 670 | * ORM have a value of 10. |
| 671 | - * @param array $parameters Any additional parameters if the join is a parameterised subquery |
|
| 671 | + * @param string[] $parameters Any additional parameters if the join is a parameterised subquery |
|
| 672 | 672 | * @return DataList |
| 673 | 673 | */ |
| 674 | 674 | public function leftJoin($table, $onClause, $alias = null, $order = 20, $parameters = array()) { |
@@ -884,7 +884,7 @@ discard block |
||
| 884 | 884 | /** |
| 885 | 885 | * Restrict the columns to fetch into this DataList |
| 886 | 886 | * |
| 887 | - * @param array $queriedColumns |
|
| 887 | + * @param string[] $queriedColumns |
|
| 888 | 888 | * @return DataList |
| 889 | 889 | */ |
| 890 | 890 | public function setQueriedColumns($queriedColumns) { |
@@ -1159,7 +1159,7 @@ discard block |
||
| 1159 | 1159 | /** |
| 1160 | 1160 | * Returns item stored in list with index $key |
| 1161 | 1161 | * |
| 1162 | - * @param mixed $key |
|
| 1162 | + * @param integer $key |
|
| 1163 | 1163 | * @return DataObject |
| 1164 | 1164 | */ |
| 1165 | 1165 | public function offsetGet($key) { |
@@ -152,8 +152,8 @@ |
||
| 152 | 152 | /** |
| 153 | 153 | * Make an xpath query against this HTML |
| 154 | 154 | * |
| 155 | - * @param $query string - The xpath query string |
|
| 156 | - * @return DOMNodeList |
|
| 155 | + * @param string $query string - The xpath query string |
|
| 156 | + * @return \DOMNodeList |
|
| 157 | 157 | */ |
| 158 | 158 | public function query($query) { |
| 159 | 159 | $xp = new DOMXPath($this->getDocument()); |
@@ -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() |