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.
Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

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

public addCategory ( Category $category )
$category Category

get() public static méthode

public static get ( ) : CategoryList
Résultat CategoryList

getCategories() public méthode

public getCategories ( )

getCategory() public méthode

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

hasCategory() public méthode

public hasCategory ( $categoryId )