PHP 클래스 Piwik\Category\Category

This class is for now not exposed as public API until needed. Categories of plugins will be automatically displayed in the menu at the very right after all core categories.
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$icon integer The icon for this category, eg 'icon-user'
$id The id of the category as specified eg in {@link Piwik\Widget\WidgetConfig::setCategoryId()`} or {@link Piwik\Report\getCategoryId()}. The id is used as the name in the menu and will be visible in the URL.
$order integer The order of the category. The lower the value the further left the category will appear in the menu.
$subcategories Subcategory[]

공개 메소드들

메소드 설명
addSubcategory ( Subcategory $subcategory )
getIcon ( )
getId ( )
getOrder ( )
getSubcategories ( ) : Subcategory[]
getSubcategory ( $subcategoryId )
hasSubCategories ( )
hasSubcategory ( $subcategoryId )
setIcon ( $icon )
setId ( $id )
setOrder ( integer $order ) : static

메소드 상세

addSubcategory() 공개 메소드

public addSubcategory ( Subcategory $subcategory )
$subcategory Subcategory

getIcon() 공개 메소드

public getIcon ( )

getId() 공개 메소드

public getId ( )

getOrder() 공개 메소드

public getOrder ( )

getSubcategories() 공개 메소드

public getSubcategories ( ) : Subcategory[]
리턴 Subcategory[]

getSubcategory() 공개 메소드

public getSubcategory ( $subcategoryId )

hasSubCategories() 공개 메소드

public hasSubCategories ( )

hasSubcategory() 공개 메소드

public hasSubcategory ( $subcategoryId )

setIcon() 공개 메소드

public setIcon ( $icon )

setId() 공개 메소드

public setId ( $id )

setOrder() 공개 메소드

public setOrder ( integer $order ) : static
$order integer
리턴 static

프로퍼티 상세

$icon 보호되어 있는 프로퍼티

The icon for this category, eg 'icon-user'
protected int $icon
리턴 integer

$id 보호되어 있는 프로퍼티

The id of the category as specified eg in {@link Piwik\Widget\WidgetConfig::setCategoryId()`} or {@link Piwik\Report\getCategoryId()}. The id is used as the name in the menu and will be visible in the URL.
protected $id

$order 보호되어 있는 프로퍼티

The order of the category. The lower the value the further left the category will appear in the menu.
protected int $order
리턴 integer

$subcategories 보호되어 있는 프로퍼티

protected Subcategory[],Piwik\Category $subcategories
리턴 Subcategory[]