Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Finder/Node.php
<?php

namespace XF\Finder;

use
XF\Mvc\Entity\Finder;

class
Node extends Finder
{
    public function
descendantOf(\XF\Entity\Node $node)
    {
       
$this->where('lft', '>', $node->lft)
            ->
where('rgt', '<', $node->rgt);

        return
$this;
    }

    public function
listable()
    {
       
$this->where('display_in_list', 1);

        return
$this;
    }
}