@@ -108,7 +108,7 @@ |
||
| 108 | 108 | * Return a date and time formatted as per a CMS user's settings. |
| 109 | 109 | * |
| 110 | 110 | * @param Member $member |
| 111 | - * @return boolean | string A time and date pair formatted as per user-defined settings. |
|
| 111 | + * @return false|string | string A time and date pair formatted as per user-defined settings. |
|
| 112 | 112 | */ |
| 113 | 113 | public function FormatFromSettings($member = null) { |
| 114 | 114 | require_once 'Zend/Date.php'; |
@@ -589,7 +589,7 @@ discard block |
||
| 589 | 589 | * |
| 590 | 590 | * @param string $condition The PHP condition to be evaluated. The page will be called $item |
| 591 | 591 | * @param array $collator An array, passed by reference, to collect all of the matching descendants. |
| 592 | - * @return true|null |
|
| 592 | + * @return boolean|null |
|
| 593 | 593 | */ |
| 594 | 594 | public function collateDescendants($condition, &$collator) { |
| 595 | 595 | if($children = $this->Children()) { |
@@ -950,6 +950,7 @@ discard block |
||
| 950 | 950 | * |
| 951 | 951 | * @param String File extension, without dot prefix. Use an asterisk ('*') |
| 952 | 952 | * to specify a generic fallback if no mapping is found for an extension. |
| 953 | + * @param string $ext |
|
| 953 | 954 | * @return String Classname for a subclass of {@link File} |
| 954 | 955 | */ |
| 955 | 956 | public static function get_class_for_file_extension($ext) { |
@@ -1087,7 +1088,6 @@ discard block |
||
| 1087 | 1088 | * Note that the result will not have a leading slash, and should not be used |
| 1088 | 1089 | * with local file paths. |
| 1089 | 1090 | * |
| 1090 | - * @param string $part,... Parts |
|
| 1091 | 1091 | * @return string |
| 1092 | 1092 | */ |
| 1093 | 1093 | public static function join_paths() { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Construct a new SQLSelect. |
| 63 | 63 | * |
| 64 | - * @param array|string $select An array of SELECT fields. |
|
| 64 | + * @param string $select An array of SELECT fields. |
|
| 65 | 65 | * @param array|string $from An array of FROM clauses. The first one should be just the table name. |
| 66 | 66 | * Each should be ANSI quoted. |
| 67 | 67 | * @param array $where An array of WHERE clauses. |
@@ -115,7 +115,6 @@ discard block |
||
| 115 | 115 | * </code> |
| 116 | 116 | * |
| 117 | 117 | * @param string|array $fields Field names should be ANSI SQL quoted. Array keys should be unquoted. |
| 118 | - * @param boolean $clear Clear existing select fields? |
|
| 119 | 118 | * @return $this Self reference |
| 120 | 119 | */ |
| 121 | 120 | public function setSelect($fields) { |
@@ -352,7 +351,7 @@ discard block |
||
| 352 | 351 | * |
| 353 | 352 | * @param string $value |
| 354 | 353 | * @param string $defaultDirection |
| 355 | - * @return array A two element array: array($column, $direction) |
|
| 354 | + * @return string[] A two element array: array($column, $direction) |
|
| 356 | 355 | */ |
| 357 | 356 | private function getDirectionFromString($value, $defaultDirection = null) { |
| 358 | 357 | if(preg_match('/^(.*)(asc|desc)$/i', $value, $matches)) { |
@@ -447,7 +446,6 @@ discard block |
||
| 447 | 446 | * @see SQLSelect::addWhere() for syntax examples |
| 448 | 447 | * |
| 449 | 448 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 450 | - * @param mixed $having,... Unlimited additional predicates |
|
| 451 | 449 | * @return self Self reference |
| 452 | 450 | */ |
| 453 | 451 | public function setHaving($having) { |
@@ -462,7 +460,6 @@ discard block |
||
| 462 | 460 | * @see SQLSelect::addWhere() for syntax examples |
| 463 | 461 | * |
| 464 | 462 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 465 | - * @param mixed $having,... Unlimited additional predicates |
|
| 466 | 463 | * @return self Self reference |
| 467 | 464 | */ |
| 468 | 465 | public function addHaving($having) { |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | /** |
| 954 | 954 | * Find objects in the given relationships, merging them into the given list |
| 955 | 955 | * |
| 956 | - * @param array $source Config property to extract relationships from |
|
| 956 | + * @param string $source Config property to extract relationships from |
|
| 957 | 957 | * @param bool $recursive True if recursive |
| 958 | 958 | * @param ArrayList $list Optional list to add items to |
| 959 | 959 | * @return ArrayList The list |
@@ -1051,7 +1051,7 @@ discard block |
||
| 1051 | 1051 | /** |
| 1052 | 1052 | * Check if the current user can delete this record from live |
| 1053 | 1053 | * |
| 1054 | - * @param null $member |
|
| 1054 | + * @param DataObject|null $member |
|
| 1055 | 1055 | * @return mixed |
| 1056 | 1056 | */ |
| 1057 | 1057 | public function canUnpublish($member = null) { |
@@ -1161,7 +1161,7 @@ discard block |
||
| 1161 | 1161 | * Extend permissions to include additional security for objects that are not published to live. |
| 1162 | 1162 | * |
| 1163 | 1163 | * @param Member $member |
| 1164 | - * @return bool|null |
|
| 1164 | + * @return false|null |
|
| 1165 | 1165 | */ |
| 1166 | 1166 | public function canView($member = null) { |
| 1167 | 1167 | // Invoke default version-gnostic canView |
@@ -1236,7 +1236,7 @@ discard block |
||
| 1236 | 1236 | * |
| 1237 | 1237 | * @param string $stage |
| 1238 | 1238 | * @param Member $member |
| 1239 | - * @return bool |
|
| 1239 | + * @return boolean|string |
|
| 1240 | 1240 | */ |
| 1241 | 1241 | public function canViewStage($stage = 'Live', $member = null) { |
| 1242 | 1242 | $oldMode = Versioned::get_reading_mode(); |
@@ -1306,7 +1306,7 @@ discard block |
||
| 1306 | 1306 | /** |
| 1307 | 1307 | * Get the latest published DataObject. |
| 1308 | 1308 | * |
| 1309 | - * @return DataObject |
|
| 1309 | + * @return string |
|
| 1310 | 1310 | */ |
| 1311 | 1311 | public function latestPublished() { |
| 1312 | 1312 | // Get the root data object class - this will have the version field |
@@ -2267,7 +2267,7 @@ discard block |
||
| 2267 | 2267 | /** |
| 2268 | 2268 | * Returns an array of possible stages. |
| 2269 | 2269 | * |
| 2270 | - * @return array |
|
| 2270 | + * @return string[] |
|
| 2271 | 2271 | */ |
| 2272 | 2272 | public function getVersionedStages() { |
| 2273 | 2273 | if($this->hasVersionedStages()) { |