Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • Criteria
  • CriteriaCompo
  • CriteriaElement
  • Dtype
  • XoopsModelAbstract
  • XoopsModelFactory
  • XoopsObject
  • XoopsObjectHandler
  • XoopsPersistableObjectHandler
  • Overview
  • Namespace
  • Class
  • Tree

Class CriteriaCompo

Collection of multiple CriteriaElement objects

Xoops\Core\Kernel\CriteriaElement
Extended by Xoops\Core\Kernel\CriteriaCompo

Direct known subclasses

CriteriaCompo
Namespace: Xoops\Core\Kernel
Package: Xoops\Core\Kernel
Category: Xoops\Core\Kernel\CriteriaCompo
Copyright: 2000-2013 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Author: Nathan Dial ndial@trillion21.com
Author: Taiwen Jiang phppp@users.sourceforge.net
Since: 2.0.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Kernel/CriteriaCompo.php
Methods summary
public
# __construct( Xoops\Core\Kernel\CriteriaElement $ele = null, string $condition = 'AND' )

Constructor

Constructor

Parameters

$ele
a criteria element to start the compo
$condition
joining condition for element, AND or OR
public Xoops\Core\Kernel\CriteriaCompo
# add( Xoops\Core\Kernel\CriteriaElement $criteriaElement, string $condition = 'AND' )

add a criteria element

add a criteria element

Parameters

$criteriaElement
a criteria element to add to the compo
$condition
joining condition for element, AND or OR

Returns

Xoops\Core\Kernel\CriteriaCompo
public string
# render( )

Make the criteria into a query string

Make the criteria into a query string

Returns

string
public string
# renderWhere( )

Make the criteria into a SQL "WHERE" clause

Make the criteria into a SQL "WHERE" clause

Returns

string
public string
# renderLdap( )

Generate an LDAP filter from criteria

Generate an LDAP filter from criteria

Returns

string

Author

Nathan Dial ndial@trillion21.com
public Doctrine\DBAL\Query\QueryBuilder
# renderQb( Doctrine\DBAL\Query\QueryBuilder $qb = null, string $whereMode = '' )

Render as Doctrine QueryBuilder instructions

Render as Doctrine QueryBuilder instructions

Parameters

$qb
query builder instance
$whereMode

how does this fit in the passed in QueryBuilder? '' = as where,'and'= as andWhere, 'or' = as orWhere

Returns

Doctrine\DBAL\Query\QueryBuilder
query builder instance
public string
# buildExpressionQb( Doctrine\DBAL\Query\QueryBuilder $qb )

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

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

$qb
query builder instance

Returns

string
expression
Methods inherited from Xoops\Core\Kernel\CriteriaElement
getGroupBy(), getLimit(), getOrder(), getSort(), getStart(), setGroupBy(), setLimit(), setOrder(), setSort(), setStart()
Properties summary
protected Xoops\Core\Kernel\CriteriaElement[] $criteriaElements

The elements of the collection

The elements of the collection

# array()
protected array $conditions

Conditions

Conditions

# array()
Properties inherited from Xoops\Core\Kernel\CriteriaElement
$groupBy, $limit, $order, $sort, $start
API documentation generated by ApiGen