PHP 클래스 Nag_Search, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (BSD). If you did not did not receive this file, see http://www.horde.org/licenses/bsdl.php.
저자: Michael J Rubinsky ([email protected])
상속: implements Serializable
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_completed integer The completed/view value.
$_due array Duedate criteria
$_mask integer The search mask
$_search array Search criteria
$_tags array Tag search criteria
$_tasklists array The tasks lists to search.

공개 메소드들

메소드 설명
__construct ( string $search, integer $mask, array $options = [] ) : Nag_Search Constructor
getSlice ( integer $page, integer $perpage ) : Nag_Task Get a result slice.
getVars ( Horde_Variables &$vars ) Populate a Horde_Variables instance with the search values for this search.
serialize ( ) : array Serialize method
unserialize ( string $data ) Unserialize method

보호된 메소드들

메소드 설명
_search ( integer $page, integer $perpage ) : Nag_Task Perform the search

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $search, integer $mask, array $options = [] ) : Nag_Search
$search string The search string.
$mask integer A bitmask to indicate the fields to search.
$options array Additional options: - completed: (integer) Which tasks to include. A NAG::VIEW_* constant. DEFAULT: Nag::VIEW_INCOMPLETE - due: (array) An array describing the due date portion of the search. EXAMPLE: array('5', 'tomorrow') would be all tasks due within 5 days of tomorrow. DEFAULT: No date filters. - tags: (array) An array of tags to filter on. - tasklists: (array) An array of tasklist ids to filter on. DEFAULT: The current display_tasklists value is used.
리턴 Nag_Search

getSlice() 공개 메소드

Get a result slice.
public getSlice ( integer $page, integer $perpage ) : Nag_Task
$page integer The page number
$perpage integer The number of results per page.
리턴 Nag_Task The result list.

getVars() 공개 메소드

Populate a Horde_Variables instance with the search values for this search.
public getVars ( Horde_Variables &$vars )
$vars Horde_Variables The Horde_Variables object.

serialize() 공개 메소드

Serialize method
public serialize ( ) : array
리턴 array The unserialized data.

unserialize() 공개 메소드

Unserialize method
public unserialize ( string $data )
$data string The serialized data.

프로퍼티 상세

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

The completed/view value.
protected int $_completed
리턴 integer

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

Duedate criteria
protected array $_due
리턴 array

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

The search mask
protected int $_mask
리턴 integer

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

Tag search criteria
protected array $_tags
리턴 array

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

The tasks lists to search.
protected array $_tasklists
리턴 array