Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Zend_Ldap_Filter Class Reference

Public Member Functions

 __construct ($attr, $value, $filtertype, $prepend=null, $append=null)
 Creates a new Zend_Ldap_Filter.
 
- Public Member Functions inherited from Zend_Ldap_Filter_String
 __construct ($filter)
 Creates a Zend_Ldap_Filter_String.
 
 toString ()
 Returns a string representation of the filter.
 
- Public Member Functions inherited from Zend_Ldap_Filter_Abstract
 toString ()
 Returns a string representation of the filter.
 
 __toString ()
 Returns a string representation of the filter.
 
 negate ()
 Negates the filter.
 
 addAnd ($filter)
 Creates an 'and' filter.
 
 addOr ($filter)
 Creates an 'or' filter.
 

Static Public Member Functions

static equals ($attr, $value)
 Creates an 'equals' filter.
 
static begins ($attr, $value)
 Creates a 'begins with' filter.
 
static ends ($attr, $value)
 Creates an 'ends with' filter.
 
static contains ($attr, $value)
 Creates a 'contains' filter.
 
static greater ($attr, $value)
 Creates a 'greater' filter.
 
static greaterOrEqual ($attr, $value)
 Creates a 'greater or equal' filter.
 
static less ($attr, $value)
 Creates a 'less' filter.
 
static lessOrEqual ($attr, $value)
 Creates an 'less or equal' filter.
 
static approx ($attr, $value)
 Creates an 'approx' filter.
 
static any ($attr)
 Creates an 'any' filter.
 
static string ($filter)
 Creates a simple custom string filter.
 
static mask ($mask, $value)
 Creates a simple string filter to be used with a mask.
 
static andFilter ($filter)
 Creates an 'and' filter.
 
static orFilter ($filter)
 Creates an 'or' filter.
 

Public Attributes

const TYPE_EQUALS = '='
 
const TYPE_GREATER = '>'
 
const TYPE_GREATEROREQUAL = '>='
 
const TYPE_LESS = '<'
 
const TYPE_LESSOREQUAL = '<='
 
const TYPE_APPROX = '~='
 

Additional Inherited Members

- Protected Attributes inherited from Zend_Ldap_Filter_String
 $_filter
 

Constructor & Destructor Documentation

__construct (   $attr,
  $value,
  $filtertype,
  $prepend = null,
  $append = null 
)

Creates a new Zend_Ldap_Filter.

Parameters
string$attr
string$value
string$filtertype
string$prepend
string$append

Member Function Documentation

static andFilter (   $filter)
static

Creates an 'and' filter.

Parameters
Zend_Ldap_Filter_Abstract$filter,...
Returns
Zend_Ldap_Filter_And

Zend_Ldap_Filter_And

static any (   $attr)
static

Creates an 'any' filter.

(attr=*)

Parameters
string$attr
Returns
Zend_Ldap_Filter
static approx (   $attr,
  $value 
)
static

Creates an 'approx' filter.

(attr~=value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static begins (   $attr,
  $value 
)
static

Creates a 'begins with' filter.

(attr=value*)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static contains (   $attr,
  $value 
)
static

Creates a 'contains' filter.

(attr=*value*)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static ends (   $attr,
  $value 
)
static

Creates an 'ends with' filter.

(attr=*value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static equals (   $attr,
  $value 
)
static

Creates an 'equals' filter.

(attr=value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static greater (   $attr,
  $value 
)
static

Creates a 'greater' filter.

(attr>value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static greaterOrEqual (   $attr,
  $value 
)
static

Creates a 'greater or equal' filter.

(attr>=value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static less (   $attr,
  $value 
)
static

Creates a 'less' filter.

(attr<value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static lessOrEqual (   $attr,
  $value 
)
static

Creates an 'less or equal' filter.

(attr<=value)

Parameters
string$attr
string$value
Returns
Zend_Ldap_Filter
static mask (   $mask,
  $value 
)
static

Creates a simple string filter to be used with a mask.

Parameters
string$mask
string$value
Returns
Zend_Ldap_Filter_Mask

Zend_Ldap_Filter_Mask

static orFilter (   $filter)
static

Creates an 'or' filter.

Parameters
Zend_Ldap_Filter_Abstract$filter,...
Returns
Zend_Ldap_Filter_Or

Zend_Ldap_Filter_Or

static string (   $filter)
static

Creates a simple custom string filter.

Parameters
string$filter
Returns
Zend_Ldap_Filter_String

Member Data Documentation

const TYPE_APPROX = '~='
const TYPE_EQUALS = '='
const TYPE_GREATER = '>'
const TYPE_GREATEROREQUAL = '>='
const TYPE_LESS = '<'
const TYPE_LESSOREQUAL = '<='