XOOPS
2.6.0
|
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 | |
Definition at line 30 of file CriteriaCompo.php.
Xoops\Core\Kernel\CriteriaCompo::__construct | ( | CriteriaElement | $ele = null , |
$condition = 'AND' |
|||
) |
Constructor
CriteriaElement | null | $ele | a criteria element to start the compo |
string | $condition | joining condition for element, AND or OR |
Definition at line 52 of file CriteriaCompo.php.
References Xoops\Core\Kernel\CriteriaCompo\add().
Xoops\Core\Kernel\CriteriaCompo::add | ( | CriteriaElement | $criteriaElement, |
$condition = 'AND' |
|||
) |
add a criteria element
CriteriaElement | $criteriaElement | a criteria element to add to the compo |
string | $condition | joining condition for element, AND or OR |
Definition at line 67 of file CriteriaCompo.php.
Referenced by Xoops\Core\Kernel\CriteriaCompo\__construct(), and addCriteria().
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.
QueryBuilder | $qb | query builder instance |
Definition at line 206 of file CriteriaCompo.php.
References $i.
Xoops\Core\Kernel\CriteriaCompo::render | ( | ) |
Make the criteria into a query string
Definition at line 79 of file CriteriaCompo.php.
References $i.
Referenced by Xoops\Core\Kernel\CriteriaCompo\renderWhere().
Xoops\Core\Kernel\CriteriaCompo::renderLdap | ( | ) |
Generate an LDAP filter from criteria
Definition at line 119 of file CriteriaCompo.php.
Xoops\Core\Kernel\CriteriaCompo::renderQb | ( | QueryBuilder | $qb = null , |
$whereMode = '' |
|||
) |
Render as Doctrine QueryBuilder instructions
QueryBuilder | $qb | query builder instance |
string | $whereMode | how does this fit in the passed in QueryBuilder? '' = as where,'and'= as andWhere, 'or' = as orWhere |
Definition at line 144 of file CriteriaCompo.php.
References $i, and Xoops\getInstance().
Xoops\Core\Kernel\CriteriaCompo::renderWhere | ( | ) |
Make the criteria into a SQL "WHERE" clause
Definition at line 106 of file CriteriaCompo.php.
References Xoops\Core\Kernel\CriteriaCompo\render().
|
protected |
Definition at line 44 of file CriteriaCompo.php.
|
protected |
Definition at line 37 of file CriteriaCompo.php.