Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TCriteria

Description

Provides an interface for filtering criteria definition

Located in /database/TCriteria.php (line 15)

TExpression
   |
   --TCriteria
Method Summary
static create ($simple_filters, [$properties = null])
add ($expression, [$operator = self::AND_OPERATOR])
dump ([$prepared = FALSE])
getProperty ($property)
isEmpty ()
setProperties ($properties)
setProperty ($property, $value)
__clone ()
Methods
static create (line 42)

create criteria from array of filters

  • access: public
static create ($simple_filters, [$properties = null])
  • $simple_filters
  • $properties
Constructor __construct (line 26)

Constructor Method

  • author: Pablo Dall'Oglio
  • access: public
__construct ()
add (line 87)

Adds a new Expression to the Criteria

  • author: Pablo Dall'Oglio
  • access: public
add ($expression, [$operator = self::AND_OPERATOR])
  • $expression: TExpression object
  • $operator: Logic Operator Constant
dump (line 134)

Returns the final expression

  • return: string containing the resulting expression
  • author: Pablo Dall'Oglio
  • access: public
dump ([$prepared = FALSE])
  • $prepared: Return a prepared expression

Redefinition of:
TExpression::dump()
getCaseInsensitive (line 238)

Return if case insensitive is turned on

  • access: public
getCaseInsensitive ()
getPreparedVars (line 111)

Return the prepared vars

  • access: public
getPreparedVars ()
getProperty (line 219)

Return a Criteria property

  • return: String containing the property value
  • author: Pablo Dall'Oglio
  • access: public
getProperty ($property)
  • $property: Name of the property (LIMIT, OFFSET, ORDER)
isEmpty (line 103)

Return if criteria is empty

  • access: public
isEmpty ()
resetProperties (line 182)

reset criteria properties

  • access: public
resetProperties ()
setCaseInsensitive (line 230)

Force case insensitive searches

  • access: public
setCaseInsensitive ($value)
  • $value
setProperties (line 194)

Set properties form array

  • access: public
setProperties ($properties)
  • $properties: array of properties
setProperty (line 166)

Define a Criteria property

  • author: Pablo Dall'Oglio
  • access: public
setProperty ($property, $value)
  • $property: Name of the property (limit, offset, order, direction)
  • $value: Value for the property
__clone (line 70)

When clonning criteria

__clone ()

Inherited Methods

Inherited From TExpression

TExpression::dump()
Class Constants