@@ -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) |
@@ -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 | protected function log($message) |
200 | 203 | { |
201 | 204 | if ($this->getQuiet()) { |
@@ -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')); |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * Return whether a user can create an object of this type |
59 | 59 | * |
60 | 60 | * @param Member $member |
61 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
62 | 61 | * @return bool |
63 | 62 | */ |
64 | 63 | public function canCreate($member = null) { |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * Return whether a user can create an object of this type |
59 | 59 | * |
60 | 60 | * @param Member $member |
61 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
62 | 61 | * @return bool |
63 | 62 | */ |
64 | 63 | public function canCreate($member = null) { |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * Return whether a user can create an object of this type |
59 | 59 | * |
60 | 60 | * @param Member $member |
61 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
62 | 61 | * @return bool |
63 | 62 | */ |
64 | 63 | public function canCreate($member = null) { |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * Return whether a user can create an object of this type |
59 | 59 | * |
60 | 60 | * @param Member $member |
61 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
62 | 61 | * @return bool |
63 | 62 | */ |
64 | 63 | public function canCreate($member = null) { |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * Return whether a user can create an object of this type |
59 | 59 | * |
60 | 60 | * @param Member $member |
61 | - * @param array $context Virtual parameter to allow context to be passed in to check |
|
62 | 61 | * @return bool |
63 | 62 | */ |
64 | 63 | public function canCreate($member = null) { |