XOOPS  2.6.0
Xoops\Core\Kernel\CriteriaCompo Class Reference
Inheritance diagram for Xoops\Core\Kernel\CriteriaCompo:
Inheritance graph

Public Member Functions

 __construct (CriteriaElement $ele=null, $condition= 'AND')
 
 add (CriteriaElement $criteriaElement, $condition= 'AND')
 
 buildExpressionQb (QueryBuilder $qb)
 
 render ()
 
 renderLdap ()
 
 renderQb (QueryBuilder $qb=null, $whereMode= '')
 
 renderWhere ()
 
- Public Member Functions inherited from Xoops\Core\Kernel\CriteriaElement
 buildExpressionQb (QueryBuilder $qb)
 
 getGroupby ()
 
 getLimit ()
 
 getOrder ()
 
 getSort ()
 
 getStart ()
 
 render ()
 
 renderLdap ()
 
 renderQb (QueryBuilder $qb=null, $whereMode= '')
 
 renderWhere ()
 
 setGroupby ($group)
 
 setLimit ($limit=0)
 
 setOrder ($order)
 
 setSort ($sort)
 
 setStart ($start=0)
 

Protected Attributes

 $conditions = array()
 
 $criteriaElements = array()
 
- Protected Attributes inherited from Xoops\Core\Kernel\CriteriaElement
 $groupby = ''
 
 $limit = 0
 
 $order = 'ASC'
 
 $sort = ''
 
 $start = 0
 

Detailed Description

Definition at line 30 of file CriteriaCompo.php.

Constructor & Destructor Documentation

Xoops\Core\Kernel\CriteriaCompo::__construct ( CriteriaElement  $ele = null,
  $condition = 'AND' 
)

Constructor

Parameters
CriteriaElement | null$elea criteria element to start the compo
string$conditionjoining condition for element, AND or OR

Definition at line 52 of file CriteriaCompo.php.

References Xoops\Core\Kernel\CriteriaCompo\add().

Here is the call graph for this function:

Member Function Documentation

Xoops\Core\Kernel\CriteriaCompo::add ( CriteriaElement  $criteriaElement,
  $condition = 'AND' 
)

add a criteria element

Parameters
CriteriaElement$criteriaElementa criteria element to add to the compo
string$conditionjoining condition for element, AND or OR
Returns
CriteriaCompo

Definition at line 67 of file CriteriaCompo.php.

Referenced by Xoops\Core\Kernel\CriteriaCompo\__construct(), and addCriteria().

Here is the caller graph for this function:

Xoops\Core\Kernel\CriteriaCompo::buildExpressionQb ( QueryBuilder  $qb)

Build an expression to be included in a Doctrine QueryBuilder instance.

This method will build an expression, adding any parameters to the query, but the caller is responsible for adding the expression to the query, for example as where() parameter. This allows the caller to handle all context, such as parenthetical groupings.

Parameters
QueryBuilder$qbquery builder instance
Returns
string expression

Definition at line 206 of file CriteriaCompo.php.

References $i.

Xoops\Core\Kernel\CriteriaCompo::render ( )

Make the criteria into a query string

Returns
string

Definition at line 79 of file CriteriaCompo.php.

References $i.

Referenced by Xoops\Core\Kernel\CriteriaCompo\renderWhere().

Here is the caller graph for this function:

Xoops\Core\Kernel\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 119 of file CriteriaCompo.php.

References $i, and $op.

Xoops\Core\Kernel\CriteriaCompo::renderQb ( QueryBuilder  $qb = null,
  $whereMode = '' 
)

Render as Doctrine QueryBuilder instructions

Parameters
QueryBuilder$qbquery builder instance
string$whereModehow does this fit in the passed in QueryBuilder? '' = as where,'and'= as andWhere, 'or' = as orWhere
Returns
QueryBuilder query builder instance

Definition at line 144 of file CriteriaCompo.php.

References $i, and Xoops\getInstance().

Here is the call graph for this function:

Xoops\Core\Kernel\CriteriaCompo::renderWhere ( )

Make the criteria into a SQL "WHERE" clause

Returns
string

Definition at line 106 of file CriteriaCompo.php.

References Xoops\Core\Kernel\CriteriaCompo\render().

Here is the call graph for this function:

Member Data Documentation

Xoops\Core\Kernel\CriteriaCompo::$conditions = array()
protected

Definition at line 44 of file CriteriaCompo.php.

Xoops\Core\Kernel\CriteriaCompo::$criteriaElements = array()
protected

Definition at line 37 of file CriteriaCompo.php.


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