PHP Класс IMP_Quota, horde

Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_params array Driver parameters.

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

Метод Описание
__construct ( array $params = [] ) Constructor.
getMessages ( ) : array Returns the quota messages variants, including sprintf placeholders.
getQuota ( string $mailbox = null ) : array Get quota information (used/allocated), in bytes.
getUnit ( ) : array Determine the units of storage to display in the quota message.
isHiddenWhenUnlimited ( ) : boolean Should quota be displayed if no limit is configured?

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

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

Constructor.
public __construct ( array $params = [] )
$params array Parameters: - unit: (string) What storage unit the quota messages should be displayed in. Either 'GB', 'MB', or 'KB'. - username: (string) The username to query.

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

Returns the quota messages variants, including sprintf placeholders.
public getMessages ( ) : array
Результат array An array with quota message templates.

getQuota() абстрактный публичный Метод

Get quota information (used/allocated), in bytes.
abstract public getQuota ( string $mailbox = null ) : array
$mailbox string Mailbox to check.
Результат array An array with the following keys: - limit: Maximum quota allowed - usage: Currently used portion of quota (in bytes)

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

Determine the units of storage to display in the quota message.
public getUnit ( ) : array
Результат array An array of size and unit type.

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

Should quota be displayed if no limit is configured?
public isHiddenWhenUnlimited ( ) : boolean
Результат boolean Whether to hide the quota.

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

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

Driver parameters.
protected array $_params
Результат array