@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | /** |
380 | 380 | * Return the IDs of all the marked nodes. |
381 | 381 | * |
382 | - * @return array |
|
382 | + * @return integer[] |
|
383 | 383 | */ |
384 | 384 | public function markedNodeIDs() { |
385 | 385 | return array_keys($this->markedNodes); |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * Get the next node in the tree of the type. If there is no instance of the className descended from this node, |
757 | 757 | * then search the parents. |
758 | 758 | * @param string $className Class name of the node to find. |
759 | - * @param string|int $root ID/ClassName of the node to limit the search to |
|
759 | + * @param integer $root ID/ClassName of the node to limit the search to |
|
760 | 760 | * @param DataObject $afterNode Used for recursive calls to this function |
761 | 761 | * @return DataObject |
762 | 762 | */ |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @param mixed $joinClass |
|
68 | + * @param string $joinClass |
|
69 | 69 | * @return $this |
70 | 70 | */ |
71 | 71 | public function setJoinClass($joinClass) |
@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | * Set the key field for this map. |
42 | 42 | * |
43 | 43 | * @var string $keyField |
44 | + * @param string $keyField |
|
44 | 45 | */ |
45 | 46 | public function setKeyField($keyField) { |
46 | 47 | $this->keyField = $keyField; |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | * Set the value field for this map. |
51 | 52 | * |
52 | 53 | * @var string $valueField |
54 | + * @param string $valueField |
|
53 | 55 | */ |
54 | 56 | public function setValueField($valueField) { |
55 | 57 | $this->valueField = $valueField; |
@@ -95,6 +97,7 @@ discard block |
||
95 | 97 | * |
96 | 98 | * @var string $key |
97 | 99 | * @var mixed $value |
100 | + * @param string $value |
|
98 | 101 | */ |
99 | 102 | public function unshift($key, $value) { |
100 | 103 | $oldItems = $this->firstItems; |
@@ -114,6 +117,7 @@ discard block |
||
114 | 117 | * |
115 | 118 | * @var string $key |
116 | 119 | * @var mixed $value |
120 | + * @param string $value |
|
117 | 121 | */ |
118 | 122 | public function push($key, $value) { |
119 | 123 | $oldItems = $this->lastItems; |
@@ -374,7 +374,6 @@ discard block |
||
374 | 374 | * @see SQLConditionalExpression::addWhere() for syntax examples |
375 | 375 | * |
376 | 376 | * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries |
377 | - * @param mixed $where,... Unlimited additional predicates |
|
378 | 377 | * @return self Self reference |
379 | 378 | */ |
380 | 379 | public function setWhere($where) { |
@@ -460,7 +459,6 @@ discard block |
||
460 | 459 | * </code> |
461 | 460 | * |
462 | 461 | * @param mixed $where Predicate(s) to set, as escaped SQL statements or paramaterised queries |
463 | - * @param mixed $where,... Unlimited additional predicates |
|
464 | 462 | * @return self Self reference |
465 | 463 | */ |
466 | 464 | public function addWhere($where) { |
@@ -476,7 +474,6 @@ discard block |
||
476 | 474 | * @see SQLConditionalExpression::addWhere() |
477 | 475 | * |
478 | 476 | * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries |
479 | - * @param mixed $filters,... Unlimited additional predicates |
|
480 | 477 | * @return self Self reference |
481 | 478 | */ |
482 | 479 | public function setWhereAny($filters) { |
@@ -490,7 +487,6 @@ discard block |
||
490 | 487 | * @see SQLConditionalExpression::addWhere() |
491 | 488 | * |
492 | 489 | * @param mixed $filters Predicate(s) to set, as escaped SQL statements or paramaterised queries |
493 | - * @param mixed $filters,... Unlimited additional predicates |
|
494 | 490 | * @return self Self reference |
495 | 491 | */ |
496 | 492 | public function addWhereAny($filters) { |
@@ -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) { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Any number of foreign keys to apply to this list |
16 | 16 | * |
17 | - * @return string|array|null |
|
17 | + * @return string|null |
|
18 | 18 | */ |
19 | 19 | public function getForeignID() { |
20 | 20 | return $this->dataQuery->getQueryParam('Foreign.ID'); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | /** |
51 | 51 | * Create a new UnsavedRelationList |
52 | 52 | * |
53 | - * @param array $baseClass |
|
53 | + * @param string $baseClass |
|
54 | 54 | * @param string $relationName |
55 | 55 | * @param string $dataClass The DataObject class used in the relation |
56 | 56 | */ |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * Find version of this object in the given stage |
148 | 148 | * |
149 | 149 | * @param string $stage |
150 | - * @return DataObject|Versioned |
|
150 | + * @return DataObject|null |
|
151 | 151 | * @throws UnexpectedDataException |
152 | 152 | */ |
153 | 153 | protected function getObjectInStage($stage) { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * Find latest version of this object |
163 | - * @return DataObject|Versioned |
|
163 | + * @return DataObject|null |
|
164 | 164 | * @throws UnexpectedDataException |
165 | 165 | */ |
166 | 166 | protected function getObjectLatestVersion() { |
@@ -1065,7 +1065,7 @@ discard block |
||
1065 | 1065 | /** |
1066 | 1066 | * Find objects in the given relationships, merging them into the given list |
1067 | 1067 | * |
1068 | - * @param array $source Config property to extract relationships from |
|
1068 | + * @param string $source Config property to extract relationships from |
|
1069 | 1069 | * @param bool $recursive True if recursive |
1070 | 1070 | * @param ArrayList $list Optional list to add items to |
1071 | 1071 | * @return ArrayList The list |
@@ -1185,7 +1185,7 @@ discard block |
||
1185 | 1185 | /** |
1186 | 1186 | * Check if the current user can delete this record from live |
1187 | 1187 | * |
1188 | - * @param null $member |
|
1188 | + * @param Member|null $member |
|
1189 | 1189 | * @return mixed |
1190 | 1190 | */ |
1191 | 1191 | public function canUnpublish($member = null) { |
@@ -1295,7 +1295,7 @@ discard block |
||
1295 | 1295 | * Extend permissions to include additional security for objects that are not published to live. |
1296 | 1296 | * |
1297 | 1297 | * @param Member $member |
1298 | - * @return bool|null |
|
1298 | + * @return false|null |
|
1299 | 1299 | */ |
1300 | 1300 | public function canView($member = null) { |
1301 | 1301 | // Invoke default version-gnostic canView |
@@ -1371,7 +1371,7 @@ discard block |
||
1371 | 1371 | * |
1372 | 1372 | * @param string $stage |
1373 | 1373 | * @param Member $member |
1374 | - * @return bool |
|
1374 | + * @return boolean|string |
|
1375 | 1375 | */ |
1376 | 1376 | public function canViewStage($stage = 'Live', $member = null) { |
1377 | 1377 | $oldMode = Versioned::get_reading_mode(); |
@@ -1436,7 +1436,7 @@ discard block |
||
1436 | 1436 | /** |
1437 | 1437 | * Determines if the current draft version is the same as live |
1438 | 1438 | * |
1439 | - * @return bool |
|
1439 | + * @return string |
|
1440 | 1440 | */ |
1441 | 1441 | public function latestPublished() { |
1442 | 1442 | // Get the root data object class - this will have the version field |
@@ -2433,7 +2433,7 @@ discard block |
||
2433 | 2433 | /** |
2434 | 2434 | * Returns an array of possible stages. |
2435 | 2435 | * |
2436 | - * @return array |
|
2436 | + * @return string[] |
|
2437 | 2437 | */ |
2438 | 2438 | public function getVersionedStages() { |
2439 | 2439 | if($this->hasStages()) { |