PHP 클래스 IMP_Quota, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

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