@@ -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) |
@@ -218,6 +218,9 @@ |
||
218 | 218 | return $form; |
219 | 219 | } |
220 | 220 | |
221 | + /** |
|
222 | + * @param CSSContentParser $parser |
|
223 | + */ |
|
221 | 224 | public function checkTemplateIsCorrect($parser) |
222 | 225 | { |
223 | 226 | $this->assertArrayHasKey(0, $parser->getBySelector('form#UserForm_Form')); |
@@ -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) |
@@ -422,7 +422,6 @@ |
||
422 | 422 | * Return whether a user can create an object of this type |
423 | 423 | * |
424 | 424 | * @param Member $member |
425 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
426 | 425 | * @return bool |
427 | 426 | */ |
428 | 427 | 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) |
@@ -299,7 +299,6 @@ |
||
299 | 299 | * Return whether a user can create an object of this type |
300 | 300 | * |
301 | 301 | * @param Member $member |
302 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
303 | 302 | * @return bool |
304 | 303 | */ |
305 | 304 | public function canCreate($member = null) |
@@ -60,7 +60,6 @@ |
||
60 | 60 | * Return whether a user can create an object of this type |
61 | 61 | * |
62 | 62 | * @param Member $member |
63 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
64 | 63 | * @return bool |
65 | 64 | */ |
66 | 65 | 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()) { |