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.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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[]