@@ -35,7 +35,8 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @param $pages The DataObjectSet of SiteTree objects to perform this batch action |
| 37 | 37 | * on. |
| 38 | - * @param $helperMethod The method to call on each of those objects. |
|
| 38 | + * @param string $helperMethod The method to call on each of those objects. |
|
| 39 | + * @param string $successMessage |
|
| 39 | 40 | */ |
| 40 | 41 | public function batchaction(DataObjectSet $pages, $helperMethod, $successMessage, $arguments = array()) { |
| 41 | 42 | $failures = 0; |
@@ -72,7 +73,7 @@ discard block |
||
| 72 | 73 | * Helper method for applicablePages() methods. Acts as a skeleton implementation. |
| 73 | 74 | * |
| 74 | 75 | * @param $ids The IDs passed to applicablePages |
| 75 | - * @param $methodName The canXXX() method to call on each page to check if the action is applicable |
|
| 76 | + * @param string $methodName The canXXX() method to call on each page to check if the action is applicable |
|
| 76 | 77 | * @param $checkStagePages Set to true if you want to check stage pages |
| 77 | 78 | * @param $checkLivePages Set to true if you want to check live pages (e.g, for deleted-from-draft) |
| 78 | 79 | */ |
@@ -37,6 +37,10 @@ |
||
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param CMSMain $parentController |
|
| 42 | + * @param string $urlSegment |
|
| 43 | + */ |
|
| 40 | 44 | function __construct($parentController, $urlSegment) { |
| 41 | 45 | $this->parentController = $parentController; |
| 42 | 46 | $this->urlSegment = $urlSegment; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * @param string $menuTitle The link's title in the CMS menu |
| 106 | 106 | * @param string $url The url of the link |
| 107 | 107 | * @param integer $priority The menu priority (sorting order) of the menu item. Higher priorities will be further left. |
| 108 | - * @return boolean The result of the operation. |
|
| 108 | + * @return boolean|null The result of the operation. |
|
| 109 | 109 | */ |
| 110 | 110 | public static function add_link($code, $menuTitle, $url, $priority = -1) { |
| 111 | 111 | return self::add_menu_item($code, $menuTitle, $url, null, $priority); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * @param string $controllerClass The controller class for this menu, used to check permisssions. |
| 124 | 124 | * If blank, it's assumed that this is public, and always shown to users who |
| 125 | 125 | * have the rights to access some other part of the admin area. |
| 126 | - * @return boolean Success |
|
| 126 | + * @return boolean|null Success |
|
| 127 | 127 | */ |
| 128 | 128 | public static function add_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1) { |
| 129 | 129 | // If a class is defined, then force the use of that as a code. This helps prevent menu item duplication |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * @param string $controllerClass The controller class for this menu, used to check permisssions. |
| 243 | 243 | * If blank, it's assumed that this is public, and always shown to users who |
| 244 | 244 | * have the rights to access some other part of the admin area. |
| 245 | - * @return boolean Success |
|
| 245 | + * @return boolean|null Success |
|
| 246 | 246 | */ |
| 247 | 247 | public static function replace_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1) { |
| 248 | 248 | self::$menu_item_changes[] = array( |
@@ -254,6 +254,8 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | /** |
| 256 | 256 | * Add a previously built menuitem object to the menu |
| 257 | + * @param string $code |
|
| 258 | + * @param CMSMenuItem $cmsMenuItem |
|
| 257 | 259 | */ |
| 258 | 260 | protected static function add_menu_item_obj($code, $cmsMenuItem) { |
| 259 | 261 | self::$menu_item_changes[] = array( |
@@ -8,6 +8,12 @@ |
||
| 8 | 8 | protected $template = "CommentTableField"; |
| 9 | 9 | protected $mode; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param CommentAdmin $controller |
|
| 13 | + * @param string $name |
|
| 14 | + * @param string $sourceClass |
|
| 15 | + * @param FieldSet $detailFormFields |
|
| 16 | + */ |
|
| 11 | 17 | function __construct($controller, $name, $sourceClass, $mode, $fieldList, $detailFormFields = null, $sourceFilter = "", $sourceSort = "Created", $sourceJoin = "") { |
| 12 | 18 | $this->mode = $mode; |
| 13 | 19 | |
@@ -247,6 +247,10 @@ discard block |
||
| 247 | 247 | * match. The caller must trim matching lines from the beginning and end |
| 248 | 248 | * of the portions it is going to specify. |
| 249 | 249 | */ |
| 250 | + |
|
| 251 | + /** |
|
| 252 | + * @param double $nchunks |
|
| 253 | + */ |
|
| 250 | 254 | function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks) { |
| 251 | 255 | $flip = false; |
| 252 | 256 | |
@@ -357,6 +361,11 @@ discard block |
||
| 357 | 361 | * Note that XLIM, YLIM are exclusive bounds. |
| 358 | 362 | * All line numbers are origin-0 and discarded lines are not counted. |
| 359 | 363 | */ |
| 364 | + |
|
| 365 | + /** |
|
| 366 | + * @param integer $xoff |
|
| 367 | + * @param integer $yoff |
|
| 368 | + */ |
|
| 360 | 369 | function _compareseq ($xoff, $xlim, $yoff, $ylim) { |
| 361 | 370 | // Slide down the bottom initial diagonal. |
| 362 | 371 | while ($xoff < $xlim && $yoff < $ylim |
@@ -554,7 +563,7 @@ discard block |
||
| 554 | 563 | * |
| 555 | 564 | * $diff = new Diff($lines1, $lines2); |
| 556 | 565 | * $rev = $diff->reverse(); |
| 557 | - * @return object A Diff object representing the inverse of the |
|
| 566 | + * @return Diff A Diff object representing the inverse of the |
|
| 558 | 567 | * original diff. |
| 559 | 568 | */ |
| 560 | 569 | function reverse () { |
@@ -13,6 +13,10 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | protected $group; |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param SecurityAdmin $controller |
|
| 18 | + * @param string $name |
|
| 19 | + */ |
|
| 16 | 20 | function __construct($controller, $name, $fields = null, $actions = null, $validator = null) { |
| 17 | 21 | if(!$fields) { |
| 18 | 22 | $helpHtml = _t( |
@@ -13,6 +13,10 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | protected $group; |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param SecurityAdmin $controller |
|
| 18 | + * @param string $name |
|
| 19 | + */ |
|
| 16 | 20 | function __construct($controller, $name, $fields = null, $actions = null, $validator = null) { |
| 17 | 21 | if(!$fields) { |
| 18 | 22 | $helpHtml = _t( |
@@ -91,7 +95,7 @@ discard block |
||
| 91 | 95 | } |
| 92 | 96 | |
| 93 | 97 | /** |
| 94 | - * @param $group Group |
|
| 98 | + * @param DataObject|null $group Group |
|
| 95 | 99 | */ |
| 96 | 100 | function setGroup($group) { |
| 97 | 101 | $this->group = $group; |
@@ -645,7 +645,7 @@ discard block |
||
| 645 | 645 | * Action to render a data object collection, using the model context to provide filters |
| 646 | 646 | * and paging. |
| 647 | 647 | * |
| 648 | - * @return string |
|
| 648 | + * @return SS_HTTPResponse |
|
| 649 | 649 | */ |
| 650 | 650 | function search($request, $form) { |
| 651 | 651 | // Get the results form to be rendered |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | * Create a new model record. |
| 795 | 795 | * |
| 796 | 796 | * @param unknown_type $request |
| 797 | - * @return unknown |
|
| 797 | + * @return SS_HTTPResponse |
|
| 798 | 798 | */ |
| 799 | 799 | function add($request) { |
| 800 | 800 | return new SS_HTTPResponse( |
@@ -912,6 +912,7 @@ discard block |
||
| 912 | 912 | |
| 913 | 913 | /** |
| 914 | 914 | * Edit action - shows a form for editing this record |
| 915 | + * @param SS_HTTPRequest $request |
|
| 915 | 916 | */ |
| 916 | 917 | function edit($request) { |
| 917 | 918 | if ($this->currentRecord) { |
@@ -1012,7 +1013,7 @@ discard block |
||
| 1012 | 1013 | * Renders the record view template. |
| 1013 | 1014 | * |
| 1014 | 1015 | * @param SS_HTTPRequest $request |
| 1015 | - * @return mixed |
|
| 1016 | + * @return string |
|
| 1016 | 1017 | */ |
| 1017 | 1018 | function view($request) { |
| 1018 | 1019 | if($this->currentRecord) { |
@@ -314,6 +314,7 @@ discard block |
||
| 314 | 314 | |
| 315 | 315 | /** |
| 316 | 316 | * Return the SS_Report objects making up the given list. |
| 317 | + * @param string $list |
|
| 317 | 318 | * @return An array of SS_Report objects |
| 318 | 319 | */ |
| 319 | 320 | static function get_reports($list) { |
@@ -365,6 +366,10 @@ discard block |
||
| 365 | 366 | |
| 366 | 367 | protected $obj, $method, $params; |
| 367 | 368 | |
| 369 | + /** |
|
| 370 | + * @param SS_Report $obj |
|
| 371 | + * @param string $method |
|
| 372 | + */ |
|
| 368 | 373 | function __construct($obj, $method, $params) { |
| 369 | 374 | $this->obj = $obj; |
| 370 | 375 | $this->method = $method; |
@@ -373,6 +378,7 @@ discard block |
||
| 373 | 378 | |
| 374 | 379 | /** |
| 375 | 380 | * Provide a method that will return a list of columns that can be used to sort. |
| 381 | + * @param string $sortColMethod |
|
| 376 | 382 | */ |
| 377 | 383 | function setSortColumnMethod($sortColMethod) { |
| 378 | 384 | $this->sortColMethod = $sortColMethod; |