PHP 클래스 ProductCategory, silvershop-core

상속: extends BaseModel
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )