PHP Class ProductCategory, silvershop-core

Inheritance: extends BaseModel
Afficher le fichier Open project: burnbright/silverstripe-shop Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

ChildCategories() public méthode

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

GroupsMenu() public méthode

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

NestedTitle() public méthode

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 méthode

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
Résultat PaginatedList

provideI18nEntities() public méthode

public provideI18nEntities ( )