PHP 클래스 IMP_Search_Query, horde

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

공개 프로퍼티들

프로퍼티 타입 설명
$enabled boolean Is this query enabled?

보호된 프로퍼티들

프로퍼티 타입 설명
$_cache array Cache results.
$_canEdit boolean Can this query be edited?
$_criteria array The search criteria (IMP_Search_Element objects).
$_id string The search ID.
$_label string The virtual folder label.
$_mboxes array The mailbox list.
$_nosave array List of serialize entries not to save.

공개 메소드들

메소드 설명
__construct ( array $opts = [] ) Constructor.
__get ( $name )
__toString ( ) : string String representation of this object: the mailbox ID.
add ( IMP_Search_Element $elt ) Add a search query element.
replace ( array $criteria = [] ) Replace the search query with the given query.
runElementCallbacks ( IMP_Mailbox $mbox, array $ids ) : array Reduce the sorted return ID list by running search element callbacks.
serialize ( ) : string Serialization.
unserialize ( string $data ) Unserialization.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $opts = [] )
$opts array

__get() 공개 메소드

public __get ( $name )

__toString() 공개 메소드

String representation of this object: the mailbox ID.
public __toString ( ) : string
리턴 string Mailbox ID.

add() 공개 메소드

Add a search query element.
public add ( IMP_Search_Element $elt )
$elt IMP_Search_Element The search element to add.

replace() 공개 메소드

Replace the search query with the given query.
public replace ( array $criteria = [] )
$criteria array A list of criteria to add (Horde_Search_Element objects).

runElementCallbacks() 공개 메소드

.
public runElementCallbacks ( IMP_Mailbox $mbox, array $ids ) : array
$mbox IMP_Mailbox Mailbox.
$ids array Sorted ID list.
리턴 array Sorted ID list.

serialize() 공개 메소드

Serialization.
public serialize ( ) : string
리턴 string Serialized data.

unserialize() 공개 메소드

Unserialization.
public unserialize ( string $data )
$data string Serialized data.

프로퍼티 상세

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

Cache results.
protected array $_cache
리턴 array

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

Can this query be edited?
protected bool $_canEdit
리턴 boolean

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

The search criteria (IMP_Search_Element objects).
protected array $_criteria
리턴 array

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

The search ID.
protected string $_id
리턴 string

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

The virtual folder label.
protected string $_label
리턴 string

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

The mailbox list.
protected array $_mboxes
리턴 array

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

List of serialize entries not to save.
protected array $_nosave
리턴 array

$enabled 공개적으로 프로퍼티

Is this query enabled?
public bool $enabled
리턴 boolean