PHP Класс CategoriesController, vanilla

Наследование: extends MY_Controller
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$Category Category object.
$CategoryID Unique identifier.
$CategoryModel CategoryModel
$ShowOptions Should the discussions have their options available.
$Uses Models to include.

Открытые методы

Метод Описание
__get ( $Name )
all ( string $Category = '', string $displayAs = '' ) Show all (nested) categories.
apiV1List ( ) Returns the full list of categories for the APIv1.
archives ( $Category, $Month, boolean $Page = false )
data ( $Path, $Default = '' )
discussions ( string $Category = '' ) Show all categories and few discussions from each.
index ( string $CategoryIdentifier = '', $Page = '0' ) Show all discussions in a particular category.
initialize ( ) Highlight route.
table ( string $Category = '', string $displayAs = '' ) "Table" layout for categories. Mimics more traditional forum category layout.
tree ( $category = '' )

Приватные методы

Метод Описание
getCategoryTree ( integer | string | object | array | null $category = null, string | null $displayAs = null, boolean $recent = false, boolean $watching = false ) : array Build a structured tree of children for the specified category.

Описание методов

__get() публичный Метод

public __get ( $Name )

all() публичный Метод

Show all (nested) categories.
С версии: 2.0.17
public all ( string $Category = '', string $displayAs = '' )
$Category string The url code of the parent category.
$displayAs string

apiV1List() публичный Метод

Returns the full list of categories for the APIv1.
public apiV1List ( )

archives() публичный Метод

public archives ( $Category, $Month, boolean $Page = false )
$Category
$Month
$Page boolean

data() публичный Метод

public data ( $Path, $Default = '' )

discussions() публичный Метод

Show all categories and few discussions from each.
С версии: 2.0.0
public discussions ( string $Category = '' )
$Category string The url code of the parent category.

index() публичный Метод

Show all discussions in a particular category.
С версии: 2.0.0
public index ( string $CategoryIdentifier = '', $Page = '0' )
$CategoryIdentifier string Unique category slug or ID.

initialize() публичный Метод

Always called by dispatcher before controller's requested method.
С версии: 2.0.0
public initialize ( )

table() публичный Метод

"Table" layout for categories. Mimics more traditional forum category layout.
public table ( string $Category = '', string $displayAs = '' )
$Category string
$displayAs string

tree() публичный Метод

public tree ( $category = '' )

Описание свойств

$Category публичное свойство

Category object.
public $Category

$CategoryID публичное свойство

Unique identifier.
public $CategoryID

$CategoryModel публичное свойство

public CategoryModel $CategoryModel
Результат CategoryModel

$ShowOptions публичное свойство

Should the discussions have their options available.
public $ShowOptions

$Uses публичное свойство

Models to include.
public $Uses