PHP Класс ProductCategory, silvershop-core

Наследование: extends BaseModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ( )

Описание методов

AllChildCategoryIDs() публичный Метод

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

ChildCategories() публичный Метод

Return children ProductCategory pages of this category.
public ChildCategories ( boolean $recursive = false ) : DataList
$recursive boolean
Результат DataList

GroupsMenu() публичный Метод

Recursively generate a product menu, starting from the topmost category.
public GroupsMenu ( ) : DataList
Результат DataList

NestedTitle() публичный Метод

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() публичный Метод

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
Результат PaginatedList

provideI18nEntities() публичный Метод

public provideI18nEntities ( )