@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | * - array('fields' => array('A','B','C'), 'type' => 'index/unique/fulltext'): This gives you full |
| 296 | 296 | * control over the index. |
| 297 | 297 | * @param boolean $hasAutoIncPK A flag indicating that the primary key on this table is an autoincrement type |
| 298 | - * @param array $options Create table options (ENGINE, etc.) |
|
| 298 | + * @param string|null $options Create table options (ENGINE, etc.) |
|
| 299 | 299 | * @param array|bool $extensions List of extensions |
| 300 | 300 | */ |
| 301 | 301 | public function requireTable($table, $fieldSchema = null, $indexSchema = null, $hasAutoIncPK = true, |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | /** |
| 481 | 481 | * Given an index spec determines the index type |
| 482 | 482 | * |
| 483 | - * @param array|string $spec |
|
| 483 | + * @param string $spec |
|
| 484 | 484 | * @return string |
| 485 | 485 | */ |
| 486 | 486 | protected function determineIndexType($spec) { |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | * |
| 576 | 576 | * @param string $table The table name. |
| 577 | 577 | * @param string $field The field name. |
| 578 | - * @param array|string $spec The field specification. If passed in array syntax, the specific database |
|
| 578 | + * @param string $spec The field specification. If passed in array syntax, the specific database |
|
| 579 | 579 | * driver takes care of the ALTER TABLE syntax. If passed as a string, its assumed to |
| 580 | 580 | * be prepared as a direct SQL framgment ready for insertion into ALTER TABLE. In this case you'll |
| 581 | 581 | * need to take care of database abstraction in your DBField subclass. |
@@ -2716,6 +2716,7 @@ discard block |
||
| 2716 | 2716 | |
| 2717 | 2717 | /** |
| 2718 | 2718 | * {@inheritdoc} |
| 2719 | + * @param string $field |
|
| 2719 | 2720 | */ |
| 2720 | 2721 | public function castingHelper($field) { |
| 2721 | 2722 | if ($fieldSpec = $this->db($field)) { |
@@ -2920,7 +2921,7 @@ discard block |
||
| 2920 | 2921 | |
| 2921 | 2922 | /** |
| 2922 | 2923 | * @param Member $member |
| 2923 | - * @return boolean |
|
| 2924 | + * @return boolean|string |
|
| 2924 | 2925 | */ |
| 2925 | 2926 | public function canView($member = null) { |
| 2926 | 2927 | $extended = $this->extendedCan(__FUNCTION__, $member); |
@@ -2932,7 +2933,7 @@ discard block |
||
| 2932 | 2933 | |
| 2933 | 2934 | /** |
| 2934 | 2935 | * @param Member $member |
| 2935 | - * @return boolean |
|
| 2936 | + * @return boolean|string |
|
| 2936 | 2937 | */ |
| 2937 | 2938 | public function canEdit($member = null) { |
| 2938 | 2939 | $extended = $this->extendedCan(__FUNCTION__, $member); |
@@ -2944,7 +2945,7 @@ discard block |
||
| 2944 | 2945 | |
| 2945 | 2946 | /** |
| 2946 | 2947 | * @param Member $member |
| 2947 | - * @return boolean |
|
| 2948 | + * @return boolean|string |
|
| 2948 | 2949 | */ |
| 2949 | 2950 | public function canDelete($member = null) { |
| 2950 | 2951 | $extended = $this->extendedCan(__FUNCTION__, $member); |
@@ -2958,7 +2959,7 @@ discard block |
||
| 2958 | 2959 | * @param Member $member |
| 2959 | 2960 | * @param array $context Additional context-specific data which might |
| 2960 | 2961 | * affect whether (or where) this object could be created. |
| 2961 | - * @return boolean |
|
| 2962 | + * @return boolean|string |
|
| 2962 | 2963 | */ |
| 2963 | 2964 | public function canCreate($member = null, $context = array()) { |
| 2964 | 2965 | $extended = $this->extendedCan(__FUNCTION__, $member, $context); |
@@ -3062,7 +3063,7 @@ discard block |
||
| 3062 | 3063 | * Traverses to a field referenced by relationships between data objects, returning the value |
| 3063 | 3064 | * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName) |
| 3064 | 3065 | * |
| 3065 | - * @param $fieldName string |
|
| 3066 | + * @param string $fieldName string |
|
| 3066 | 3067 | * @return string | null - will return null on a missing value |
| 3067 | 3068 | */ |
| 3068 | 3069 | public function relField($fieldName) { |
@@ -3132,7 +3133,7 @@ discard block |
||
| 3132 | 3133 | * @param string $callerClass The class of objects to be returned |
| 3133 | 3134 | * @param string|array $filter A filter to be inserted into the WHERE clause. |
| 3134 | 3135 | * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples. |
| 3135 | - * @param string|array $sort A sort expression to be inserted into the ORDER |
|
| 3136 | + * @param string $sort A sort expression to be inserted into the ORDER |
|
| 3136 | 3137 | * BY clause. If omitted, self::$default_sort will be used. |
| 3137 | 3138 | * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead. |
| 3138 | 3139 | * @param string|array $limit A limit expression to be inserted into the LIMIT clause. |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * column. Can contain a relation name in dot notation, which will automatically join |
| 63 | 63 | * the necessary tables (e.g. "Comments.Name" to join the "Comments" has-many relationship and |
| 64 | 64 | * search the "Name" column when applying this filter to a SiteTree class). |
| 65 | - * @param mixed $value |
|
| 65 | + * @param string $value |
|
| 66 | 66 | * @param array $modifiers |
| 67 | 67 | */ |
| 68 | 68 | public function __construct($fullName = null, $value = false, array $modifiers = array()) { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Gets supported modifiers for this filter |
| 144 | 144 | * |
| 145 | - * @return array |
|
| 145 | + * @return string[] |
|
| 146 | 146 | */ |
| 147 | 147 | public function getSupportedModifiers() |
| 148 | 148 | { |
@@ -187,6 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | 189 | * @param String |
| 190 | + * @param string $name |
|
| 190 | 191 | */ |
| 191 | 192 | public function setFullName($name) { |
| 192 | 193 | $this->fullName = $name; |
@@ -323,7 +324,7 @@ discard block |
||
| 323 | 324 | /** |
| 324 | 325 | * Determines case sensitivity based on {@link getModifiers()}. |
| 325 | 326 | * |
| 326 | - * @return Mixed TRUE or FALSE to enforce sensitivity, NULL to use field collation. |
|
| 327 | + * @return boolean|null TRUE or FALSE to enforce sensitivity, NULL to use field collation. |
|
| 327 | 328 | */ |
| 328 | 329 | protected function getCaseSensitive() { |
| 329 | 330 | $modifiers = $this->getModifiers(); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * |
| 63 | 63 | * It does so by setting the relationFilters. |
| 64 | 64 | * |
| 65 | - * @param DataObject|int $item The DataObject to be added, or its ID |
|
| 65 | + * @param DataObject $item The DataObject to be added, or its ID |
|
| 66 | 66 | */ |
| 67 | 67 | public function add($item) { |
| 68 | 68 | if(is_numeric($item)) { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Construct a new SQLSelect. |
| 67 | 67 | * |
| 68 | - * @param array|string $select An array of SELECT fields. |
|
| 68 | + * @param string $select An array of SELECT fields. |
|
| 69 | 69 | * @param array|string $from An array of FROM clauses. The first one should be just the table name. |
| 70 | 70 | * Each should be ANSI quoted. |
| 71 | 71 | * @param array $where An array of WHERE clauses. |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | * |
| 356 | 356 | * @param string $value |
| 357 | 357 | * @param string $defaultDirection |
| 358 | - * @return array A two element array: array($column, $direction) |
|
| 358 | + * @return string[] A two element array: array($column, $direction) |
|
| 359 | 359 | */ |
| 360 | 360 | private function getDirectionFromString($value, $defaultDirection = null) { |
| 361 | 361 | if(preg_match('/^(.*)(asc|desc)$/i', $value, $matches)) { |
@@ -450,7 +450,6 @@ discard block |
||
| 450 | 450 | * @see SQLSelect::addWhere() for syntax examples |
| 451 | 451 | * |
| 452 | 452 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 453 | - * @param mixed $having,... Unlimited additional predicates |
|
| 454 | 453 | * @return $this Self reference |
| 455 | 454 | */ |
| 456 | 455 | public function setHaving($having) { |
@@ -465,7 +464,6 @@ discard block |
||
| 465 | 464 | * @see SQLSelect::addWhere() for syntax examples |
| 466 | 465 | * |
| 467 | 466 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
| 468 | - * @param mixed $having,... Unlimited additional predicates |
|
| 469 | 467 | * @return $this Self reference |
| 470 | 468 | */ |
| 471 | 469 | public function addHaving($having) { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * Eg: $this->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation")) |
| 46 | 46 | * |
| 47 | 47 | * @param int $minScore The minimum number of character tests that must pass |
| 48 | - * @param array $testNames The names of the tests to perform |
|
| 48 | + * @param string[] $testNames The names of the tests to perform |
|
| 49 | 49 | * @return $this |
| 50 | 50 | */ |
| 51 | 51 | public function characterStrength($minScore, $testNames) { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * will be checked for the current user |
| 122 | 122 | * @param bool $strict Use "strict" checking (which means a permission |
| 123 | 123 | * will be granted if the key does not exist at all)? |
| 124 | - * @return int|bool The ID of the permission record if the permission |
|
| 124 | + * @return boolean|string The ID of the permission record if the permission |
|
| 125 | 125 | * exists; FALSE otherwise. If "strict" checking is |
| 126 | 126 | * disabled, TRUE will be returned if the permission does not exist at all. |
| 127 | 127 | */ |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param string $arg Optional argument (e.g. a permissions for a specific page) |
| 160 | 160 | * @param bool $strict Use "strict" checking (which means a permission |
| 161 | 161 | * will be granted if the key does not exist at all)? |
| 162 | - * @return int|bool The ID of the permission record if the permission |
|
| 162 | + * @return boolean|string The ID of the permission record if the permission |
|
| 163 | 163 | * exists; FALSE otherwise. If "strict" checking is |
| 164 | 164 | * disabled, TRUE will be returned if the permission does not exist at all. |
| 165 | 165 | */ |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * Get permissions |
| 60 | 60 | * |
| 61 | - * @return array Associative array of permissions in this permission |
|
| 61 | + * @return string Associative array of permissions in this permission |
|
| 62 | 62 | * group. The array indicies are the permission codes as |
| 63 | 63 | * used in {@link Permission::check()}. The value is |
| 64 | 64 | * suitable for using in an interface. |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | /** |
| 130 | 130 | * |
| 131 | 131 | * @param GridField $gridField |
| 132 | - * @return array |
|
| 132 | + * @return string[] |
|
| 133 | 133 | */ |
| 134 | 134 | public function getActions($gridField) { |
| 135 | 135 | return array('addto'); |