PHP 클래스 Horde_Imap_Client_Data_Capability, horde

부터: 2.24.0
저자: Michael Slusarz ([email protected])
상속: implements Serializable, implements SplSubject
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_data array Capability data.
$_observers array Observers.

공개 메소드들

메소드 설명
add ( string $capability, mixed $params = null ) Add a capability (and optional parameters).
attach ( SplObserver $observer )
detach ( SplObserver $observer )
getParams ( string $capability ) : array Return the list of parameters for an extension.
isEnabled ( string $capability = null ) : mixed Is the extension enabled?
notify ( ) Notification is triggered internally whenever the object's internal data storage is altered.
query ( string $capability, string $parameter = null ) : boolean Returns whether the server supports the given capability.
remove ( string $capability, string $params = null ) Remove a capability.
serialize ( )
toArray ( ) : array Returns the raw data.
unserialize ( $data )

메소드 상세

add() 공개 메소드

Add a capability (and optional parameters).
public add ( string $capability, mixed $params = null )
$capability string The capability to add.
$params mixed A parameter (or array of parameters) to add.

attach() 공개 메소드

public attach ( SplObserver $observer )
$observer SplObserver

detach() 공개 메소드

public detach ( SplObserver $observer )
$observer SplObserver

getParams() 공개 메소드

Return the list of parameters for an extension.
public getParams ( string $capability ) : array
$capability string The capability string to query.
리턴 array An array of parameters if the extension exists and supports parameters. Otherwise, an empty array.

isEnabled() 공개 메소드

Is the extension enabled?
public isEnabled ( string $capability = null ) : mixed
$capability string The extension (+ parameter) to query. If null, returns all enabled extensions.
리턴 mixed If $capability is null, return all enabled extensions. Otherwise, true if the extension (+ parameter) is enabled.

notify() 공개 메소드

Notification is triggered internally whenever the object's internal data storage is altered.
public notify ( )

query() 공개 메소드

Returns whether the server supports the given capability.
public query ( string $capability, string $parameter = null ) : boolean
$capability string The capability string to query.
$parameter string If set, require the parameter to exist.
리턴 boolean True if the capability (and parameter) exist.

remove() 공개 메소드

Remove a capability.
public remove ( string $capability, string $params = null )
$capability string The capability to remove.
$params string A parameter (or array of parameters) to remove from the capability.

serialize() 공개 메소드

public serialize ( )

toArray() 공개 메소드

Returns the raw data.
사용 중단:
public toArray ( ) : array
리턴 array Capability data.

unserialize() 공개 메소드

public unserialize ( $data )

프로퍼티 상세

$_data 보호되어 있는 프로퍼티

Capability data.
protected array $_data
리턴 array

$_observers 보호되어 있는 프로퍼티

Observers.
protected array $_observers
리턴 array