FOF30\Model\TreeModel::scopeDescendants PHP Метод

scopeDescendants() защищенный Метод

get() will return all descendants (even subtrees of subtrees!) but not ourselves
protected scopeDescendants ( ) : void
Результат void
    protected function scopeDescendants()
    {
        $this->treeNestedGet = true;
        $db = $this->getDbo();
        $fldLft = $db->qn($this->getFieldAlias('lft'));
        $fldRgt = $db->qn($this->getFieldAlias('rgt'));
        $this->whereRaw($db->qn('node') . '.' . $fldLft . ' > ' . $db->qn('parent') . '.' . $fldLft);
        $this->whereRaw($db->qn('node') . '.' . $fldLft . ' < ' . $db->qn('parent') . '.' . $fldRgt);
        $this->whereRaw($db->qn('parent') . '.' . $fldLft . ' = ' . $db->q($this->lft));
    }