Tree\Model\Category::children PHP Method

children() public method

public children ( )
    public function children()
    {
        $entries = $this->find(['left_key >= :left_key: AND right_key <= :right_key: AND depth = :depth_plus: AND id <> :id: AND root = :root:', 'order' => 'left_key ASC', 'bind' => ['id' => $this->getId(), 'root' => $this->getRoot(), 'depth_plus' => $this->getDepth() + 1, 'left_key' => $this->getLeftKey(), 'right_key' => $this->getRightKey()]]);
        return $entries;
    }