Completed
Pull Request — 3.4 (#6237)
by
unknown
13:35
created
admin/code/ModelAdmin.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
 		Requirements::javascript(FRAMEWORK_ADMIN_DIR . '/javascript/ModelAdmin.js');
121 121
 	}
122 122
 
123
+	/**
124
+	 * @param string $action
125
+	 */
123 126
 	public function Link($action = null) {
124 127
 		if(!$action) $action = $this->sanitiseClassName($this->modelClass);
125 128
 		return parent::Link($action);
@@ -219,6 +222,9 @@  discard block
 block discarded – undo
219 222
 		return $form;
220 223
 	}
221 224
 
225
+	/**
226
+	 * @return GridFieldComponent
227
+	 */
222 228
 	public function getList() {
223 229
 		$context = $this->getSearchContext();
224 230
 		$params = $this->getRequest()->requestVar('q');
@@ -274,6 +280,7 @@  discard block
 block discarded – undo
274 280
 
275 281
 	/**
276 282
 	 * Unsanitise a model class' name from a URL param
283
+	 * @param string $class
277 284
 	 * @return string
278 285
 	 */
279 286
 	protected function unsanitiseClassName($class) {
@@ -414,7 +421,7 @@  discard block
 block discarded – undo
414 421
 	 * @param array $data
415 422
 	 * @param Form $form
416 423
 	 * @param SS_HTTPRequest $request
417
-	 * @return bool|null
424
+	 * @return false|null
418 425
 	 */
419 426
 	public function import($data, $form, $request) {
420 427
 		if(!$this->showImportForm || (is_array($this->showImportForm)
Please login to merge, or discard this patch.