@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * Sets the fragment name this button is rendered into. |
78 | 78 | * |
79 | 79 | * @param string $fragment |
80 | - * @return GridFieldAddNewInlineButton $this |
|
80 | + * @return GridFieldAddClassesButton $this |
|
81 | 81 | */ |
82 | 82 | public function setFragment($fragment) { |
83 | 83 | $this->targetFragment = $fragment; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * Gets the list of classes which can be created, with checks for permissions. |
119 | 119 | * Will fallback to the default model class for the given DataGrid |
120 | 120 | * |
121 | - * @param DataGrid $grid |
|
121 | + * @param GridField $grid |
|
122 | 122 | * @return array |
123 | 123 | */ |
124 | 124 | public function getClassesCreate($grid) { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * Migrate a versioned field in a single stage |
47 | 47 | * |
48 | 48 | * @param EditableFormField $field |
49 | - * @param stage $stage |
|
49 | + * @param string $stage |
|
50 | 50 | */ |
51 | 51 | protected function upgradeFieldInStage(EditableFormField $field, $stage) { |
52 | 52 | Versioned::reading_stage($stage); |
@@ -189,6 +189,9 @@ discard block |
||
189 | 189 | return $rule; |
190 | 190 | } |
191 | 191 | |
192 | + /** |
|
193 | + * @param string $message |
|
194 | + */ |
|
192 | 195 | protected function log($message) { |
193 | 196 | if($this->getQuiet()) { |
194 | 197 | return; |
@@ -208,6 +208,9 @@ |
||
208 | 208 | return $form; |
209 | 209 | } |
210 | 210 | |
211 | + /** |
|
212 | + * @param CSSContentParser $parser |
|
213 | + */ |
|
211 | 214 | function checkTemplateIsCorrect($parser) { |
212 | 215 | $this->assertArrayHasKey(0, $parser->getBySelector('form#UserForm_Form')); |
213 | 216 |
@@ -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) { |