TreeBehavior::ancestorIds PHP Méthode

ancestorIds() public méthode

returns all parent object ids (note there may be more than one because any object can exist in more than one tree).
public ancestorIds ( )
    public function ancestorIds()
    {
        $owner = $this->getOwner();
        $cache_id = $this->getCacheStub() . ':ancestorIds';
        $ancestor_ids = Yii::app()->cache->get($cache_id);
        if ($ancestor_ids === false) {
            $ancestor_ids = $this->_ancestorIds($owner->getDbConnection(), $owner->treeTable(), $owner->id);
            Yii::app()->cache->set($cache_id, $ancestor_ids);
        }
        return $ancestor_ids;
    }