TreeBehavior::descendentIds PHP Méthode

descendentIds() public méthode

returns all descendant ids of the object, across any trees the the object exists in.
public descendentIds ( )
    public function descendentIds()
    {
        $owner = $this->getOwner();
        $cache_id = $this->getCacheStub() . ':descendentIds';
        $descendent_ids = Yii::app()->cache->get($cache_id);
        if ($descendent_ids === false) {
            $descendent_ids = $this->_descendentIds($owner->getDbConnection(), $owner->treeTable(), $owner->id);
            Yii::app()->cache->set($cache_id, $descendent_ids);
        }
        return $descendent_ids;
    }