PHP Класс DiscussionsModule, vanilla

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

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

Свойство Тип Описание
$Limit Display limit.
$Prefix string

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

Свойство Тип Описание
$categoryIDs Limit the discussions to just this list of categories, checked for view permission.

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

Метод Описание
__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 ( )

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

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

public __construct ( )

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

public assetTarget ( )

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

Get a list of category IDs to limit.
public getCategoryIDs ( ) : array
Результат array

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

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

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

public getShowPhotos ( ) : boolean
Результат boolean Whether to show the discussion author avatar.

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

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

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

public setShowPhotos ( $showPhotos ) : DiscussionsModule
$showPhotos Whether to show the discussion author avatar.
Результат DiscussionsModule

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

public toString ( )

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

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

Display limit.
public $Limit

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

public string $Prefix
Результат string

$categoryIDs защищенное свойство

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