PHP Class ProductCategory, silvershop-core

Inheritance: extends BaseModel
Datei anzeigen Open project: burnbright/silverstripe-shop Class Usage Examples

Public Methods

Method Description
AllChildCategoryIDs ( ) Loop down each level of children to get all ids.
ChildCategories ( boolean $recursive = false ) : DataList Return children ProductCategory pages of this category.
GroupsMenu ( ) : DataList Recursively generate a product menu, starting from the topmost category.
NestedTitle ( integer $level = 10, string $separator = " > ", $field = "MenuTitle" ) Override the nested title defaults, to show deeper nesting in the CMS.
ProductsShowable ( boolean $recursive = true ) : PaginatedList Retrieve a set of products, based on the given parameters. Checks get query for sorting and pagination.
provideI18nEntities ( )

Method Details

AllChildCategoryIDs() public method

Loop down each level of children to get all ids.
public AllChildCategoryIDs ( )

ChildCategories() public method

Return children ProductCategory pages of this category.
public ChildCategories ( boolean $recursive = false ) : DataList
$recursive boolean
return DataList

GroupsMenu() public method

Recursively generate a product menu, starting from the topmost category.
public GroupsMenu ( ) : DataList
return DataList

NestedTitle() public method

Override the nested title defaults, to show deeper nesting in the CMS.
public NestedTitle ( integer $level = 10, string $separator = " > ", $field = "MenuTitle" )
$level integer nesting level
$separator string seperate nesting with this string

ProductsShowable() public method

Retrieve a set of products, based on the given parameters. Checks get query for sorting and pagination.
public ProductsShowable ( boolean $recursive = true ) : PaginatedList
$recursive boolean include sub-categories
return PaginatedList

provideI18nEntities() public method

public provideI18nEntities ( )