XOOPS
2.6.0
|
Public Member Functions | |
__construct ($column, $value= '', $operator= '=', $prefix= '', $function= '') | |
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) | |
Public Attributes | |
$column | |
$function | |
$operator | |
$prefix | |
$value | |
Additional Inherited Members | |
Protected Attributes inherited from Xoops\Core\Kernel\CriteriaElement | |
$groupby = '' | |
$limit = 0 | |
$order = 'ASC' | |
$sort = '' | |
$start = 0 | |
Definition at line 30 of file Criteria.php.
Xoops\Core\Kernel\Criteria::__construct | ( | $column, | |
$value = '' , |
|||
$operator = '=' , |
|||
$prefix = '' , |
|||
$function = '' |
|||
) |
Constructor
string | $column | column criteria applies to |
string | $value | value to compare to column |
string | $operator | operator to apply to column |
string | $prefix | prefix to append to column |
string | $function | sprintf string taking one string argument applied to column |
Definition at line 66 of file Criteria.php.
References Xoops\Core\Kernel\Criteria\$column, Xoops\Core\Kernel\Criteria\$function, Xoops\Core\Kernel\Criteria\$operator, Xoops\Core\Kernel\Criteria\$prefix, and Xoops\Core\Kernel\Criteria\$value.
Xoops\Core\Kernel\Criteria::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 283 of file Criteria.php.
References Xoops\Core\Kernel\Criteria\$column, Xoops\Core\Kernel\Criteria\$operator, and Xoops\Core\Kernel\Criteria\$value.
Referenced by Xoops\Core\Kernel\Criteria\renderQb().
Xoops\Core\Kernel\Criteria::render | ( | ) |
Make a sql condition string
Definition at line 80 of file Criteria.php.
References Xoops\Core\Kernel\Criteria\$operator, and Xoops\Core\Kernel\Criteria\$value.
Referenced by Xoops\Core\Kernel\Criteria\renderWhere().
Xoops\Core\Kernel\Criteria::renderLdap | ( | ) |
Generate an LDAP filter from criteria
Definition at line 113 of file Criteria.php.
References Xoops\Core\Kernel\Criteria\$operator, and $uid.
Xoops\Core\Kernel\Criteria::renderQb | ( | QueryBuilder | $qb = null , |
$whereMode = '' |
|||
) |
Render criteria 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 161 of file Criteria.php.
References Xoops\Core\Kernel\Criteria\buildExpressionQb(), and Xoops\getInstance().
Xoops\Core\Kernel\Criteria::renderWhere | ( | ) |
Make a SQL "WHERE" clause
Definition at line 146 of file Criteria.php.
References Xoops\Core\Kernel\Criteria\render().
Xoops\Core\Kernel\Criteria::$column |
Definition at line 45 of file Criteria.php.
Referenced by Xoops\Core\Kernel\Criteria\__construct(), and Xoops\Core\Kernel\Criteria\buildExpressionQb().
Xoops\Core\Kernel\Criteria::$function |
Definition at line 40 of file Criteria.php.
Referenced by Xoops\Core\Kernel\Criteria\__construct().
Xoops\Core\Kernel\Criteria::$operator |
Definition at line 50 of file Criteria.php.
Referenced by Xoops\Core\Kernel\Criteria\__construct(), Xoops\Core\Kernel\Criteria\buildExpressionQb(), Xoops\Core\Kernel\Criteria\render(), and Xoops\Core\Kernel\Criteria\renderLdap().
Xoops\Core\Kernel\Criteria::$prefix |
Definition at line 35 of file Criteria.php.
Referenced by Xoops\Core\Kernel\Criteria\__construct().
Xoops\Core\Kernel\Criteria::$value |
Definition at line 55 of file Criteria.php.
Referenced by Xoops\Core\Kernel\Criteria\__construct(), Xoops\Core\Kernel\Criteria\buildExpressionQb(), and Xoops\Core\Kernel\Criteria\render().