@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * Sets the fragment name this button is rendered into. |
83 | 83 | * |
84 | 84 | * @param string $fragment |
85 | - * @return GridFieldAddNewInlineButton $this |
|
85 | + * @return GridFieldAddClassesButton $this |
|
86 | 86 | */ |
87 | 87 | public function setFragment($fragment) |
88 | 88 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * Gets the list of classes which can be created, with checks for permissions. |
128 | 128 | * Will fallback to the default model class for the given DataGrid |
129 | 129 | * |
130 | - * @param DataGrid $grid |
|
130 | + * @param GridField $grid |
|
131 | 131 | * @return array |
132 | 132 | */ |
133 | 133 | public function getClassesCreate($grid) |
@@ -94,7 +94,6 @@ |
||
94 | 94 | * Return whether a user can create an object of this type |
95 | 95 | * |
96 | 96 | * @param Member $member |
97 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
98 | 97 | * @return bool |
99 | 98 | */ |
100 | 99 | public function canCreate($member = null) |
@@ -93,7 +93,6 @@ |
||
93 | 93 | * Return whether a user can create an object of this type |
94 | 94 | * |
95 | 95 | * @param Member $member |
96 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
97 | 96 | * @return bool |
98 | 97 | */ |
99 | 98 | public function canCreate($member = null) |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * Migrate a versioned field in a single stage |
50 | 50 | * |
51 | 51 | * @param EditableFormField $field |
52 | - * @param stage $stage |
|
52 | + * @param string $stage |
|
53 | 53 | */ |
54 | 54 | protected function upgradeFieldInStage(EditableFormField $field, $stage) |
55 | 55 | { |
@@ -196,6 +196,9 @@ discard block |
||
196 | 196 | return $rule; |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $message |
|
201 | + */ |
|
199 | 202 | public function log($message) |
200 | 203 | { |
201 | 204 | if ($this->getQuiet()) { |
@@ -94,7 +94,6 @@ |
||
94 | 94 | * Return whether a user can create an object of this type |
95 | 95 | * |
96 | 96 | * @param Member $member |
97 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
98 | 97 | * @return bool |
99 | 98 | */ |
100 | 99 | public function canCreate($member = null) |
@@ -94,7 +94,6 @@ |
||
94 | 94 | * Return whether a user can create an object of this type |
95 | 95 | * |
96 | 96 | * @param Member $member |
97 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
98 | 97 | * @return bool |
99 | 98 | */ |
100 | 99 | public function canCreate($member = null) |
@@ -94,7 +94,6 @@ |
||
94 | 94 | * Return whether a user can create an object of this type |
95 | 95 | * |
96 | 96 | * @param Member $member |
97 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
98 | 97 | * @return bool |
99 | 98 | */ |
100 | 99 | public function canCreate($member = null) |
@@ -259,6 +259,10 @@ |
||
259 | 259 | return $form; |
260 | 260 | } |
261 | 261 | |
262 | + /** |
|
263 | + * @param CSSContentParser $parser |
|
264 | + * @param UserDefinedForm|null $form |
|
265 | + */ |
|
262 | 266 | public function checkTemplateIsCorrect($parser, $form) |
263 | 267 | { |
264 | 268 | $this->assertArrayHasKey(0, $parser->getBySelector('form#UserForm_Form_' . $form->ID)); |
@@ -140,7 +140,7 @@ |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return float |
|
143 | + * @return integer |
|
144 | 144 | */ |
145 | 145 | public static function get_php_max_file_size() |
146 | 146 | { |