Skip to content
Browse files

Updating the doc blocks for TreeBehavior::moveup/movedown to indicate…

… that

number can be either an integer or a boolean.
Fixes #1655
  • Loading branch information...
1 parent 12c2456 commit 3a7f44e04c75d8f1a73963e4d3a47b44e1e3c07f @markstory markstory committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/model/behaviors/tree.php
View
4 cake/libs/model/behaviors/tree.php
@@ -437,7 +437,7 @@ function getpath(&$Model, $id = null, $fields = null, $recursive = null) {
*
* @param AppModel $Model Model instance
* @param mixed $id The ID of the record to move
- * @param mixed $number how many places to move the node or true to move to last position
+ * @param int|bool $number how many places to move the node or true to move to last position
* @return boolean true on success, false on failure
* @access public
* @link http://book.cakephp.org/view/1352/moveDown
@@ -496,7 +496,7 @@ function movedown(&$Model, $id = null, $number = 1) {
*
* @param AppModel $Model Model instance
* @param mixed $id The ID of the record to move
- * @param mixed $number how many places to move the node, or true to move to first position
+ * @param int|bool $number how many places to move the node, or true to move to first position
* @return boolean true on success, false on failure
* @access public
* @link http://book.cakephp.org/view/1353/moveUp

0 comments on commit 3a7f44e

Please sign in to comment.
Something went wrong with that request. Please try again.