ProductCategory::GroupsMenu PHP Méthode

GroupsMenu() public méthode

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