PHP Class DiscussionsModule, vanilla

Inheritance: extends Gdn_Module
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Méthodes publiques

Свойство Type Description
$Limit Display limit.
$Prefix string

Protected Properties

Свойство Type Description
$categoryIDs Limit the discussions to just this list of categories, checked for view permission.

Méthodes publiques

Méthode Description
__construct ( )
assetTarget ( )
getCategoryIDs ( ) : array Get a list of category IDs to limit.
getData ( integer | boolean $limit = false ) Get the data for the module.
getShowPhotos ( ) : boolean
setCategoryIDs ( array $categoryIDs ) Set a list of category IDs to limit.
setShowPhotos ( $showPhotos ) : DiscussionsModule
toString ( )

Method Details

__construct() public méthode

public __construct ( )

assetTarget() public méthode

public assetTarget ( )

getCategoryIDs() public méthode

Get a list of category IDs to limit.
public getCategoryIDs ( ) : array
Résultat array

getData() public méthode

Get the data for the module.
public getData ( integer | boolean $limit = false )
$limit integer | boolean Override the number of discussions to display.

getShowPhotos() public méthode

public getShowPhotos ( ) : boolean
Résultat boolean Whether to show the discussion author avatar.

setCategoryIDs() public méthode

Set a list of category IDs to limit.
public setCategoryIDs ( array $categoryIDs )
$categoryIDs array

setShowPhotos() public méthode

public setShowPhotos ( $showPhotos ) : DiscussionsModule
$showPhotos Whether to show the discussion author avatar.
Résultat DiscussionsModule

toString() public méthode

public toString ( )

Property Details

$Limit public_oe property

Display limit.
public $Limit

$Prefix public_oe property

public string $Prefix
Résultat string

$categoryIDs protected_oe property

Limit the discussions to just this list of categories, checked for view permission.
protected $categoryIDs