API - XOOPS 2.5.11 Beta 2
By monxoops.fr
CriteriaCompo Class Reference
Inheritance diagram for CriteriaCompo:
Collaboration diagram for CriteriaCompo:

Public Member Functions

 __construct (CriteriaElement $ele=null, $condition='AND')
 
add (CriteriaElement $criteriaElement, $condition='AND')
 
 render ()
 
 renderWhere ()
 
 renderLdap ()
 
- Public Member Functions inherited from CriteriaElement
 __construct ()
 
 render ()
 
 setSort ($sort)
 
 getSort ()
 
 setOrder ($order)
 
 getOrder ()
 
 setLimit ($limit=0)
 
 getLimit ()
 
 setStart ($start=0)
 
 getStart ()
 
 setGroupBy ($group)
 
 getGroupby ()
 

Data Fields

 $criteriaElements = array()
 
 $conditions = array()
 
- Data Fields inherited from CriteriaElement
 $order = 'ASC'
 
 $sort = ''
 
 $limit = 0
 
 $start = 0
 
 $groupby = ''
 

Detailed Description

Collection of multiple CriteriaElements

Constructor & Destructor Documentation

◆ __construct()

__construct ( CriteriaElement  $ele = null,
  $condition = 'AND' 
)

Constructor

Parameters
CriteriaElement | null$ele
string$condition
Here is the call graph for this function:

Member Function Documentation

◆ add()

& add ( CriteriaElement  $criteriaElement,
  $condition = 'AND' 
)

Add an element

Parameters
CriteriaElement | object$criteriaElement
string$condition
Returns
object reference to this collection
Here is the caller graph for this function:

◆ render()

render ( )

Make the criteria into a query string

Returns
string

Reimplemented from CriteriaElement.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderLdap()

renderLdap ( )

Generate an LDAP filter from criteria

Returns
string
Author
Nathan Dial ndial.nosp@m.@tri.nosp@m.llion.nosp@m.21.c.nosp@m.om

◆ renderWhere()

renderWhere ( )

Make the criteria into a SQL "WHERE" clause

Returns
string
Here is the call graph for this function:

Field Documentation

◆ $conditions

$conditions = array()

◆ $criteriaElements

$criteriaElements = array()

The documentation for this class was generated from the following file: