PHP Class FlatCategoryModule, vanilla

Inheritance: extends Gdn_Module
Afficher le fichier Open project: vanilla/vanilla

Méthodes publiques

Свойство Type Description
$categoryID Category identifier. Can be the slug or the category's ID.
$filter Filter output by name.
$limit Limit on the number of categories displayed.

Méthodes publiques

Méthode Description
__construct ( string | Gdn_Controller $sender = '', boolean | string $applicationFolder = false ) FlatCategoryModule constructor.
assetTarget ( ) : string Returns the name of the asset where this component should be rendered.
getCategory ( ) : array | null Get data for the configured category.
getChildren ( ) : array | null Get a list of immediate children for the configured category.
getFilter ( ) : null | string Get the value to be used for filtering categories by name, if any.
getLimit ( ) : integer Get the configured record limit.
toString ( ) : string Returns the component as a string to be rendered to the screen.

Method Details

__construct() public méthode

FlatCategoryModule constructor.
public __construct ( string | Gdn_Controller $sender = '', boolean | string $applicationFolder = false )
$sender string | Gdn_Controller
$applicationFolder boolean | string

assetTarget() public méthode

Returns the name of the asset where this component should be rendered.
public assetTarget ( ) : string
Résultat string

getCategory() public méthode

Get data for the configured category.
public getCategory ( ) : array | null
Résultat array | null Array if the configured category is valid. Otherwise, null.

getChildren() public méthode

Get a list of immediate children for the configured category.
public getChildren ( ) : array | null
Résultat array | null

getFilter() public méthode

Get the value to be used for filtering categories by name, if any.
public getFilter ( ) : null | string
Résultat null | string

getLimit() public méthode

Get the configured record limit.
public getLimit ( ) : integer
Résultat integer

toString() public méthode

Returns the component as a string to be rendered to the screen.
public toString ( ) : string
Résultat string

Property Details

$categoryID public_oe property

Category identifier. Can be the slug or the category's ID.
public $categoryID

$filter public_oe property

Filter output by name.
public $filter

$limit public_oe property

Limit on the number of categories displayed.
public $limit