XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
CriteriaCompo Class Reference
Inheritance diagram for CriteriaCompo:
Inheritance graph

Public Member Functions

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

Public Attributes

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

Detailed Description

Collection of multiple CriteriaElements

Definition at line 180 of file criteria.php.

Member Function Documentation

& CriteriaCompo::add ( $criteriaElement,
  $condition = 'AND' 
)

Add an element

Parameters
object$ &$criteriaElement
string$condition
Returns
object reference to this collection

Definition at line 216 of file criteria.php.

Referenced by CriteriaCompo().

Here is the caller graph for this function:

CriteriaCompo::CriteriaCompo (   $ele = null,
  $condition = 'AND' 
)

Constructor

Parameters
object$ele
string$condition

Definition at line 202 of file criteria.php.

References add().

Here is the call graph for this function:

CriteriaCompo::render ( )

Make the criteria into a query string

Returns
string

Definition at line 230 of file criteria.php.

References $i, and $ret.

Referenced by renderWhere().

Here is the caller graph for this function:

CriteriaCompo::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

Definition at line 264 of file criteria.php.

References $i, and $op.

CriteriaCompo::renderWhere ( )

Make the criteria into a SQL "WHERE" clause

Returns
string

Definition at line 251 of file criteria.php.

References $ret, and render().

Here is the call graph for this function:

Member Data Documentation

CriteriaCompo::$conditions = array()

Definition at line 194 of file criteria.php.

CriteriaCompo::$criteriaElements = array()

Definition at line 187 of file criteria.php.


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