/** * Reorder the node without changing the parent. * * If the node is the first child, or is a top level node with no previous node this method will return false * * @param AppModel $Model Model instance * @param mixed $id The ID of the record to move * @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 */ public function moveup($Model, $id = null, $number = 1) { if ($this->scoped($Model)) { if (empty($id)) { return false; } $id = $this->__setScopeFromId($Model, $id); } return parent::moveup($Model, $id, $number); }