/** * Check if the current tree is valid. * * Returns true if the tree is valid otherwise an array of (type, incorrect left/right index, message) * * @param AppModel $Model Model instance * @param string $scope The scoped used to select the tree to verify * @return mixed true if the tree is valid or empty, otherwise an array of (error type [index, node], * [incorrect left/right index,node id], message) * @access public * @link http://book.cakephp.org/view/1630/Verify */ public function verify($Model, $scope = null) { if ($this->scoped($Model)) { $this->__setScope($Model, $scope); } return parent::verify($Model); }