@@ -60,7 +60,6 @@ |
||
60 | 60 | /** |
61 | 61 | * AddToCampaignHandler constructor. |
62 | 62 | * |
63 | - * @param Controller $parentController Controller for this form |
|
64 | 63 | * @param array|DataObject $data The data submitted as part of that form |
65 | 64 | * @param string $name Form name |
66 | 65 | */ |
@@ -77,6 +77,9 @@ |
||
77 | 77 | return $state; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param \FieldList|null $fields |
|
82 | + */ |
|
80 | 83 | protected function getFieldStates($fields) { |
81 | 84 | $states = []; |
82 | 85 | foreach ($fields as $field) { |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | /** |
259 | 259 | * Gets the combined configuration of all LeafAndMain subclasses required by the client app. |
260 | 260 | * |
261 | - * @return array |
|
261 | + * @return string |
|
262 | 262 | * |
263 | 263 | * WARNING: Experimental API |
264 | 264 | */ |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | * |
692 | 692 | * @param string $url |
693 | 693 | * @param int $code |
694 | - * @return SS_HTTPResponse|string |
|
694 | + * @return string|null |
|
695 | 695 | */ |
696 | 696 | public function redirect($url, $code=302) { |
697 | 697 | if($this->getRequest()->isAjax()) { |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | * {@link SSViewer::get_templates_by_class()} |
970 | 970 | * |
971 | 971 | * @param string $suffix |
972 | - * @return array |
|
972 | + * @return string |
|
973 | 973 | */ |
974 | 974 | public function getTemplatesWithSuffix($suffix) { |
975 | 975 | $templates = SSViewer::get_templates_by_class(get_class($this), $suffix, __CLASS__); |
@@ -2039,7 +2039,7 @@ discard block |
||
2039 | 2039 | } |
2040 | 2040 | |
2041 | 2041 | /** |
2042 | - * @return String |
|
2042 | + * @return DBField |
|
2043 | 2043 | */ |
2044 | 2044 | public function Locale() { |
2045 | 2045 | return DBField::create_field('Locale', i18n::get_locale()); |
@@ -227,6 +227,7 @@ |
||
227 | 227 | * via the standard template inclusion process. |
228 | 228 | * |
229 | 229 | * @param string |
230 | + * @param string|null $template |
|
230 | 231 | */ |
231 | 232 | public function setTemplate($template) { |
232 | 233 | $this->template = $template; |
@@ -46,6 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @todo Move this to SS_Database or DB |
49 | + * @param string $class |
|
49 | 50 | */ |
50 | 51 | public static function hasTable($class) { |
51 | 52 | // Cache the list of all table names to reduce on DB traffic |
@@ -87,7 +88,7 @@ discard block |
||
87 | 88 | * |
88 | 89 | * @todo Move this into {@see DataObjectSchema} |
89 | 90 | * |
90 | - * @param string|object $nameOrObject Class or object instance |
|
91 | + * @param string $nameOrObject Class or object instance |
|
91 | 92 | * @return array |
92 | 93 | */ |
93 | 94 | public static function dataClassesFor($nameOrObject) { |
@@ -214,6 +215,7 @@ discard block |
||
214 | 215 | |
215 | 216 | /** |
216 | 217 | * Returns true if the given class implements the given interface |
218 | + * @param string $interfaceName |
|
217 | 219 | */ |
218 | 220 | public static function classImplements($className, $interfaceName) { |
219 | 221 | return in_array($className, self::implementorsOf($interfaceName)); |
@@ -264,6 +266,9 @@ discard block |
||
264 | 266 | |
265 | 267 | private static $method_from_cache = array(); |
266 | 268 | |
269 | + /** |
|
270 | + * @param string $method |
|
271 | + */ |
|
267 | 272 | public static function has_method_from($class, $method, $compclass) { |
268 | 273 | $lClass = strtolower($class); |
269 | 274 | $lMethod = strtolower($method); |
@@ -235,7 +235,7 @@ |
||
235 | 235 | * Returns an array containing all the descendants (direct and indirect) |
236 | 236 | * of a class. |
237 | 237 | * |
238 | - * @param string|object $class |
|
238 | + * @param string $class |
|
239 | 239 | * @return array |
240 | 240 | */ |
241 | 241 | public function getDescendantsOf($class) { |
@@ -127,6 +127,7 @@ discard block |
||
127 | 127 | * or TabSet.Tab.Subtab. |
128 | 128 | * This function will create any missing tabs. |
129 | 129 | * @param array $fields An array of {@link FormField} objects. |
130 | + * @param string $insertBefore |
|
130 | 131 | */ |
131 | 132 | public function addFieldsToTab($tabName, $fields, $insertBefore = null) { |
132 | 133 | $this->flushFieldsCache(); |
@@ -166,7 +167,7 @@ discard block |
||
166 | 167 | * Removes a number of fields from a Tab/TabSet within this FieldList. |
167 | 168 | * |
168 | 169 | * @param string $tabName The name of the Tab or TabSet field |
169 | - * @param array $fields A list of fields, e.g. array('Name', 'Email') |
|
170 | + * @param string[] $fields A list of fields, e.g. array('Name', 'Email') |
|
170 | 171 | */ |
171 | 172 | public function removeFieldsFromTab($tabName, $fields) { |
172 | 173 | $this->flushFieldsCache(); |
@@ -449,6 +450,7 @@ discard block |
||
449 | 450 | |
450 | 451 | /** |
451 | 452 | * Handler method called before the FieldList is going to be manipulated. |
453 | + * @param FormField $item |
|
452 | 454 | */ |
453 | 455 | protected function onBeforeInsert($item) { |
454 | 456 | $this->flushFieldsCache(); |
@@ -521,6 +523,7 @@ discard block |
||
521 | 523 | * Transform this FieldList with a given tranform method, |
522 | 524 | * e.g. $this->transform(new ReadonlyTransformation()) |
523 | 525 | * |
526 | + * @param ReadonlyTransformation $trans |
|
524 | 527 | * @return FieldList |
525 | 528 | */ |
526 | 529 | public function transform($trans) { |
@@ -540,6 +543,9 @@ discard block |
||
540 | 543 | else return $this; |
541 | 544 | } |
542 | 545 | |
546 | + /** |
|
547 | + * @param CompositeField $field |
|
548 | + */ |
|
543 | 549 | public function setContainerField($field) { |
544 | 550 | $this->containerField = $field; |
545 | 551 | return $this; |
@@ -607,6 +613,7 @@ discard block |
||
607 | 613 | * the children collection. Doesn't work recursively. |
608 | 614 | * |
609 | 615 | * @param string|FormField |
616 | + * @param string $field |
|
610 | 617 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
611 | 618 | * be found. |
612 | 619 | */ |
@@ -654,7 +661,7 @@ discard block |
||
654 | 661 | * Support function for backwards compatibility purposes. |
655 | 662 | * Caution: Volatile API, might be removed in 3.1 or later. |
656 | 663 | * |
657 | - * @param String $tabname Path to a tab, e.g. "Root.Content.Main" |
|
664 | + * @param string $name Path to a tab, e.g. "Root.Content.Main" |
|
658 | 665 | * @return String Rewritten path, based on {@link tabPathRewrites} |
659 | 666 | */ |
660 | 667 | protected function rewriteTabPath($name) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * Which columns are handled by this component |
57 | 57 | * |
58 | 58 | * @param GridField $gridField |
59 | - * @return array |
|
59 | + * @return string[] |
|
60 | 60 | */ |
61 | 61 | public function getColumnsHandled($gridField) { |
62 | 62 | return array('Actions'); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param GridField $gridField |
77 | 77 | * @param DataObject $record |
78 | 78 | * @param string $columnName |
79 | - * @return string The HTML for the column |
|
79 | + * @return DBHTMLText The HTML for the column |
|
80 | 80 | */ |
81 | 81 | public function getColumnContent($gridField, $record, $columnName) { |
82 | 82 | // No permission checks, handled through GridFieldDetailForm, |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * column. Can contain a relation name in dot notation, which will automatically join |
61 | 61 | * the necessary tables (e.g. "Comments.Name" to join the "Comments" has-many relationship and |
62 | 62 | * search the "Name" column when applying this filter to a SiteTree class). |
63 | - * @param mixed $value |
|
63 | + * @param string $value |
|
64 | 64 | * @param array $modifiers |
65 | 65 | */ |
66 | 66 | public function __construct($fullName = null, $value = false, array $modifiers = array()) { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * Gets supported modifiers for this filter |
142 | 142 | * |
143 | - * @return array |
|
143 | + * @return string[] |
|
144 | 144 | */ |
145 | 145 | public function getSupportedModifiers() |
146 | 146 | { |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | /** |
322 | 322 | * Determines case sensitivity based on {@link getModifiers()}. |
323 | 323 | * |
324 | - * @return Mixed TRUE or FALSE to enforce sensitivity, NULL to use field collation. |
|
324 | + * @return boolean|null TRUE or FALSE to enforce sensitivity, NULL to use field collation. |
|
325 | 325 | */ |
326 | 326 | protected function getCaseSensitive() { |
327 | 327 | $modifiers = $this->getModifiers(); |