API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TCriteria extends TExpression
in package

Provides an interface for filtering criteria definition

Tags
version
7.6
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Constants

AND_OPERATOR  = 'AND '
OR_OPERATOR  = 'OR '

Properties

$caseInsensitive  : mixed
$expressions  : mixed
$operators  : mixed
$properties  : mixed

Methods

__clone()  : mixed
When clonning criteria
__construct()  : mixed
Constructor Method
add()  : mixed
Adds a new Expression to the Criteria
create()  : mixed
create criteria from array of filters
dump()  : A
Returns the final expression
getCaseInsensitive()  : bool
Return if case insensitive is turned on
getPreparedVars()  : mixed
Return the prepared vars
getProperty()  : A
Return a Criteria property
isEmpty()  : mixed
Return if criteria is empty
resetProperties()  : mixed
reset criteria properties
setCaseInsensitive()  : void
Force case insensitive searches
setProperties()  : mixed
Set properties form array
setProperty()  : mixed
Define a Criteria property

Constants

Properties

$caseInsensitive

private mixed $caseInsensitive

Methods

__clone()

When clonning criteria

public __clone() : mixed

__construct()

Constructor Method

public __construct() : mixed
Tags
author

Pablo Dall'Oglio

add()

Adds a new Expression to the Criteria

public add( $expression[,  $operator = self::AND_OPERATOR ]) : mixed
Parameters
$expression :

TExpression object

$operator : = self::AND_OPERATOR

Logic Operator Constant

Tags
author

Pablo Dall'Oglio

create()

create criteria from array of filters

public static create(mixed $simple_filters[, mixed $properties = null ]) : mixed
Parameters
$simple_filters : mixed
$properties : mixed = null

dump()

Returns the final expression

public dump([ $prepared = FALSE ]) : A
Parameters
$prepared : = FALSE

Return a prepared expression

Tags
author

Pablo Dall'Oglio

Return values
A

string containing the resulting expression

getCaseInsensitive()

Return if case insensitive is turned on

public getCaseInsensitive() : bool
Return values
bool

getPreparedVars()

Return the prepared vars

public getPreparedVars() : mixed

getProperty()

Return a Criteria property

public getProperty( $property) : A
Parameters
$property :

Name of the property (LIMIT, OFFSET, ORDER)

Tags
author

Pablo Dall'Oglio

Return values
A

String containing the property value

isEmpty()

Return if criteria is empty

public isEmpty() : mixed

resetProperties()

reset criteria properties

public resetProperties() : mixed

setCaseInsensitive()

Force case insensitive searches

public setCaseInsensitive(bool $value) : void
Parameters
$value : bool

setProperties()

Set properties form array

public setProperties( $properties) : mixed
Parameters
$properties :

array of properties

setProperty()

Define a Criteria property

public setProperty( $property,  $value) : mixed
Parameters
$property :

Name of the property (limit, offset, order, direction)

$value :

Value for the property

Tags
author

Pablo Dall'Oglio


        
On this page

Search results