Documentation

IMP_Search_Element_Within extends IMP_Search_Element
in package

Within (date) search queries.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2010-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Constants

INTERVAL_DAYS  = 1
INTERVAL_MONTHS  = 2
INTERVAL_YEARS  = 3
VERSION  = 1

Properties

$not  : bool
Allow NOT search on this element?
$_data  : object
Data for this element.

Methods

__construct()  : mixed
Constructor.
__serialize()  : array<string|int, mixed>
__unserialize()  : void
createQuery()  : Horde_Imap_Client_Search_Query
Adds the current query item to the query object.
getCriteria()  : object
Returns the criteria data for the element.
queryText()  : array<string|int, mixed>
Return search query text representation.
serialize()  : string
Serialization.
unserialize()  : mixed
Unserialization.

Constants

INTERVAL_DAYS

public mixed INTERVAL_DAYS = 1

INTERVAL_MONTHS

public mixed INTERVAL_MONTHS = 2

INTERVAL_YEARS

public mixed INTERVAL_YEARS = 3

Properties

$not

Allow NOT search on this element?

public bool $not = \true

$_data

Data for this element.

protected object $_data

Methods

__construct()

Constructor.

public __construct(int $interval, int $type[, bool $older = true ]) : mixed
Parameters
$interval : int

Interval value.

$type : int

Interval type. Either:

  • IMP_Search_Element_Within::INTERVAL_DAYS
  • IMP_Search_Element_Within::INTERVAL_MONTHS
  • IMP_Search_Element_Within::INTERVAL_YEARS
$older : bool = true

Do an older search?

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

createQuery()

Adds the current query item to the query object.

public createQuery(mixed $mbox, mixed $queryob) : Horde_Imap_Client_Search_Query
Parameters
$mbox : mixed

The mailbox to create the query for.

$queryob : mixed

The query object.

Return values
Horde_Imap_Client_Search_Query

The altered query object.

getCriteria()

Returns the criteria data for the element.

public getCriteria() : object
Return values
object

The criteria (see each class for the available properties).

queryText()

Return search query text representation.

public queryText() : array<string|int, mixed>
Return values
array<string|int, mixed>

The textual description of this search element.

serialize()

Serialization.

public serialize() : string
Return values
string

Serialized data.

unserialize()

Unserialization.

public unserialize(string $data) : mixed
Parameters
$data : string

Serialized data.

Tags
throws
Exception

        
On this page

Search results