PHP Class Piwik\Category\CategoryList

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.
ファイルを表示 Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
addCategory ( Category $category )
get ( ) : CategoryList
getCategories ( )
getCategory ( string $categoryId ) : Category | null Get the category having the given id, if possible.
hasCategory ( $categoryId )

Method Details

addCategory() public method

public addCategory ( Category $category )
$category Category

get() public static method

public static get ( ) : CategoryList
return CategoryList

getCategories() public method

public getCategories ( )

getCategory() public method

Get the category having the given id, if possible.
public getCategory ( string $categoryId ) : Category | null
$categoryId string
return Category | null

hasCategory() public method

public hasCategory ( $categoryId )