Adding TreeBehavior::setScope(), fixes #3232

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6252 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-12-25 09:00:05 +00:00
parent 69b2ad7556
commit fbf5330fd8

View file

@ -54,6 +54,15 @@ class TreeBehavior extends ModelBehavior {
}*/
$this->settings[$model->alias] = $settings;
}
/**
* Change the Tree behavior on the fly
*
* @param object $model
* @param mixed $scope
*/
function setScope(&$model, $scope) {
$this->settings[$model->name]['scope'] = $scope;
}
/**
* After save method. Called after all saves
*