@@ -55,6 +55,9 @@ |
||
55 | 55 | if($this->value) return date($format, strtotime($this->value)); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string[] $parts |
|
60 | + */ |
|
58 | 61 | public function TwelveHour( $parts ) { |
59 | 62 | $hour = $parts[1]; |
60 | 63 | $min = $parts[2]; |
@@ -18,6 +18,9 @@ |
||
18 | 18 | DB::require_field($this->tableName, $this->name, $values); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $title |
|
23 | + */ |
|
21 | 24 | public function scaffoldFormField($title = null, $params = null) { |
22 | 25 | $selectBox = new DropdownField($this->name, $title); |
23 | 26 | $selectBox->setSource($this->getDefaultOptions()); |
@@ -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) { |
@@ -843,6 +843,10 @@ discard block |
||
843 | 843 | * Assist with testing of specific protected methods |
844 | 844 | */ |
845 | 845 | class i18nTextCollectorTest_Collector extends i18nTextCollector implements TestOnly { |
846 | + |
|
847 | + /** |
|
848 | + * @param string $directory |
|
849 | + */ |
|
846 | 850 | public function getModules_Test($directory) { |
847 | 851 | return $this->getModules($directory); |
848 | 852 | } |
@@ -851,6 +855,9 @@ discard block |
||
851 | 855 | return $this->resolveDuplicateConflicts($entitiesByModule); |
852 | 856 | } |
853 | 857 | |
858 | + /** |
|
859 | + * @param string $module |
|
860 | + */ |
|
854 | 861 | public function getFileListForModule_Test($module) { |
855 | 862 | return $this->getFileListForModule($module); |
856 | 863 | } |
@@ -859,6 +866,9 @@ discard block |
||
859 | 866 | return $this->getConflicts($entitiesByModule); |
860 | 867 | } |
861 | 868 | |
869 | + /** |
|
870 | + * @param string $class |
|
871 | + */ |
|
862 | 872 | public function findModuleForClass_Test($class) { |
863 | 873 | return $this->findModuleForClass($class); |
864 | 874 | } |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | /** |
731 | 731 | * All custom objects with the same number. E.g. 'Page 1' owns 'Custom 1' |
732 | 732 | * |
733 | - * @return DataList |
|
733 | + * @return SilverStripe\ORM\DataList |
|
734 | 734 | */ |
735 | 735 | public function Custom() { |
736 | 736 | $title = str_replace('Page', 'Custom', $this->Title); |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | /** |
785 | 785 | * All pages with the same number. E.g. 'Page 1' owns 'Custom 1' |
786 | 786 | * |
787 | - * @return DataList |
|
787 | + * @return SilverStripe\ORM\DataList |
|
788 | 788 | */ |
789 | 789 | public function Pages() { |
790 | 790 | $title = str_replace('Custom', 'Page', $this->Title); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * left. |
100 | 100 | * @param array $attributes an array of attributes to include on the link. |
101 | 101 | * |
102 | - * @return boolean The result of the operation. |
|
102 | + * @return boolean|null The result of the operation. |
|
103 | 103 | */ |
104 | 104 | public static function add_link($code, $menuTitle, $url, $priority = -1, $attributes = null) { |
105 | 105 | return self::add_menu_item($code, $menuTitle, $url, null, $priority, $attributes); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * have the rights to access some other part of the admin area. |
120 | 120 | * @param int $priority |
121 | 121 | * @param array $attributes an array of attributes to include on the link. |
122 | - * @return bool Success |
|
122 | + * @return boolean|null Success |
|
123 | 123 | */ |
124 | 124 | public static function add_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1, |
125 | 125 | $attributes = null) { |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | * have the rights to access some other part of the admin area. |
251 | 251 | * @param int $priority |
252 | 252 | * @param array $attributes an array of attributes to include on the link. |
253 | - * @return bool Success |
|
253 | + * @return boolean|null Success |
|
254 | 254 | */ |
255 | 255 | public static function replace_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1, |
256 | 256 | $attributes = null) { |
@@ -78,9 +78,15 @@ |
||
78 | 78 | public function can($member) { |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param \SilverStripe\Security\Member|null $member |
|
83 | + */ |
|
81 | 84 | public function canEdit($member) { |
82 | 85 | } |
83 | 86 | |
87 | + /** |
|
88 | + * @param \SilverStripe\Security\Member|null $member |
|
89 | + */ |
|
84 | 90 | public function canDelete($member) { |
85 | 91 | } |
86 | 92 |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * Find version of this object in the given stage |
128 | 128 | * |
129 | 129 | * @param string $stage |
130 | - * @return Versioned|DataObject |
|
130 | + * @return DataObject|null |
|
131 | 131 | */ |
132 | 132 | protected function getObjectInStage($stage) { |
133 | 133 | return Versioned::get_by_stage($this->ObjectClass, $stage)->byID($this->ObjectID); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | /** |
137 | 137 | * Find latest version of this object |
138 | 138 | * |
139 | - * @return Versioned|DataObject |
|
139 | + * @return DataObject|null |
|
140 | 140 | */ |
141 | 141 | protected function getObjectLatestVersion() { |
142 | 142 | return Versioned::get_latest_version($this->ObjectClass, $this->ObjectID); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * Remove a previously registered authenticator |
129 | 129 | * |
130 | 130 | * @param string $authenticator Name of the authenticator class to register |
131 | - * @return bool Returns TRUE on success, FALSE otherwise. |
|
131 | + * @return boolean|null Returns TRUE on success, FALSE otherwise. |
|
132 | 132 | */ |
133 | 133 | public static function unregister_authenticator($authenticator) { |
134 | 134 | if(call_user_func(array($authenticator, 'on_unregister')) === true) { |
@@ -171,6 +171,7 @@ discard block |
||
171 | 171 | * Set a default authenticator (shows first in tabs) |
172 | 172 | * |
173 | 173 | * @param string |
174 | + * @param string $authenticator |
|
174 | 175 | */ |
175 | 176 | public static function set_default_authenticator($authenticator) { |
176 | 177 | self::$default_authenticator = $authenticator; |