PHP 클래스 CategoriesController, vanilla

상속: extends MY_Controller
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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