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

TFilter extends TExpression
in package

Provides an interface to define filters to be used inside a criteria

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
$operator  : mixed
$paramCounter  : mixed
$preparedVars  : mixed
$value  : mixed
$value2  : mixed
$variable  : mixed

Methods

__construct()  : mixed
Class Constructor
dump()  : A
Return the filter as a string expression
getCaseInsensitive()  : bool
Return if case insensitive is turned ON
getPreparedVars()  : mixed
Return the prepared vars
setCaseInsensitive()  : void
Force case insensitive searches
getRandomParameter()  : mixed
Returns a random parameter
transform()  : Transformed
Transform the value according to its PHP type before send it to the database

Constants

Properties

$caseInsensitive

private mixed $caseInsensitive

$paramCounter

private static mixed $paramCounter

$preparedVars

private mixed $preparedVars

Methods

__construct()

Class Constructor

public __construct( $variable,  $operator,  $value[,  $value2 = NULL ]) : mixed
Parameters
$variable :

= variable

$operator :

= operator (>, <, =, BETWEEN)

$value :

= value to be compared

$value2 : = NULL

= second value to be compared (between)

dump()

Return the filter as a string expression

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

string containing the filter

getCaseInsensitive()

Return if case insensitive is turned ON

public getCaseInsensitive() : bool
Return values
bool

getPreparedVars()

Return the prepared vars

public getPreparedVars() : mixed

setCaseInsensitive()

Force case insensitive searches

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

getRandomParameter()

Returns a random parameter

private getRandomParameter() : mixed

transform()

Transform the value according to its PHP type before send it to the database

private transform( $value[,  $prepared = FALSE ]) : Transformed
Parameters
$value :

Value to be transformed

$prepared : = FALSE

If the value will be prepared

Return values
Transformed

Value


        
On this page

Search results