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)
setProperties ($properties)
setProperty ($property, $value)
__clone ()
Methods
static create (line 38)

create criteria from array of filters

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

Constructor Method

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

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 122)

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()
getPreparedVars (line 99)

Return the prepared vars

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

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)
resetProperties (line 168)

reset criteria properties

  • access: public
resetProperties ()
setProperties (line 179)

Set properties form array

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

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 66)

When clonning criteria

__clone ()

Inherited Methods

Inherited From TExpression

TExpression::dump()
Class Constants
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/pablo/fontes/builds/phpdoc/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 262 Strict Standards: Only variables should be passed by reference in /home/pablo/fontes/builds/phpdoc/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 712

Inherited Constants

Inherited from TExpression

TExpression::AND_OPERATOR
TExpression::OR_OPERATOR