ProductCategory::GroupsMenu PHP 메소드

GroupsMenu() 공개 메소드

Recursively generate a product menu, starting from the topmost category.
public GroupsMenu ( ) : DataList
리턴 DataList
    public function GroupsMenu()
    {
        if ($this->Parent() instanceof ProductCategory) {
            return $this->Parent()->GroupsMenu();
        }
        return ProductCategory::get()->filter("ParentID", $this->ID);
    }