models/AuthItem.php
public function move($oldParent, $newParent)
    {
        return $oldParent->removeChild($this)
            ? $newParent->addChild($this)
            : false;
    }
public function move($oldParent, $newParent)
    {
        return $oldParent->removeChild($this)
            ? $newParent->addChild($this)
            : false;
    }
public function move ( $ oldParent , $ newParent ) { return $ oldParent -> removeChild ( $ this ) ? $ newParent -> addChild ( $ this ) : false ; }
Detaches this model from its old parent
and attaches to the new one.
@param AuthItem $oldParent item
@param AuthItem $newParent item
@return boolean whether model has been moved.
Detaches this model from its old parent and attaches to the new one .