Tree\Model\Category::treeUpperLeafs PHP Method

treeUpperLeafs() public static method

public static treeUpperLeafs ( $root )
    public static function treeUpperLeafs($root)
    {
        $entries = Category::find(['root = :root: AND parent_id IS NULL', 'order' => 'left_key', 'bind' => ['root' => $root]]);
        return $entries;
    }

Usage Example

示例#1
0
 public function treeUpperLeafs($root)
 {
     return Category::treeUpperLeafs($root);
 }