Where
    
            
            in package
            
        
    
    
    
        
            Permite crear cláusulas WHERE para consultas SQL.
Tags
Table of Contents
- FIELD_SEPARATOR = '|'
 - $fields : string
 - $operation : string
 - $operator : string
 - $subWhere : array<string|int, Where>
 - $value : mixed
 - $db : DataBase
 - __construct() : mixed
 - between() : self
 - column() : self
 - eq() : self
 - gt() : self
 - gte() : self
 - in() : self
 - isNotNull() : self
 - isNull() : self
 - like() : self
 - lt() : self
 - lte() : self
 - multiSql() : string
 - multiSqlLegacy() : string
 - notBetween() : self
 - notEq() : self
 - notIn() : self
 - notLike() : self
 - or() : self
 - orBetween() : self
 - orEq() : self
 - orGt() : self
 - orGte() : self
 - orIn() : self
 - orIsNotNull() : self
 - orIsNull() : self
 - orLike() : self
 - orLt() : self
 - orLte() : self
 - orNotBetween() : self
 - orNotEq() : self
 - orNotIn() : self
 - orNotLike() : self
 - orRegexp() : self
 - orSub() : self
 - orXlike() : self
 - regexp() : self
 - sql() : string
 - sub() : self
 - xlike() : self
 - db() : DataBase
 - sqlColumn() : string
 - sqlOperatorBetween() : string
 - sqlOperatorIn() : string
 - sqlOperatorLike() : string
 - sqlOperatorXLike() : string
 - sqlValue() : string
 
Constants
FIELD_SEPARATOR
    public
        mixed
    FIELD_SEPARATOR
    = '|'
        
        
    
Properties
$fields
    public
        string
    $fields
    
    
    
    
$operation
    public
        string
    $operation
    
    
    
    
$operator
    public
        string
    $operator
    
    
    
    
$subWhere
    public
        array<string|int, Where>
    $subWhere
    
    
    
    
$value
    public
        mixed
    $value
    
    
    
    
$db
    private
    static    DataBase
    $db
    
    
    
    
Methods
__construct()
    public
                    __construct(string $fields, mixed $value[, string $operator = '=' ][, string $operation = 'AND' ]) : mixed
        
        Parameters
- $fields : string
 - $value : mixed
 - $operator : string = '='
 - $operation : string = 'AND'
 
Return values
mixed —between()
    public
            static        between(string $fields, mixed $value1, mixed $value2) : self
        
        Parameters
- $fields : string
 - $value1 : mixed
 - $value2 : mixed
 
Return values
self —column()
    public
            static        column(string $fields, mixed $value[, string $operator = '=' ][, string $operation = 'AND' ]) : self
        
        Parameters
- $fields : string
 - $value : mixed
 - $operator : string = '='
 - $operation : string = 'AND'
 
Return values
self —eq()
    public
            static        eq(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —gt()
    public
            static        gt(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —gte()
    public
            static        gte(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —in()
    public
            static        in(string $fields, mixed $values) : self
        
        Parameters
- $fields : string
 - $values : mixed
 
Return values
self —isNotNull()
    public
            static        isNotNull(string $fields) : self
        
        Parameters
- $fields : string
 
Return values
self —isNull()
    public
            static        isNull(string $fields) : self
        
        Parameters
- $fields : string
 
Return values
self —like()
    public
            static        like(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —lt()
    public
            static        lt(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —lte()
    public
            static        lte(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —multiSql()
    public
            static        multiSql(array<string|int, mixed> $where) : string
        
        Parameters
- $where : array<string|int, mixed>
 
Return values
string —multiSqlLegacy()
    public
            static        multiSqlLegacy(array<string|int, mixed> $where) : string
        
        Parameters
- $where : array<string|int, mixed>
 
Return values
string —notBetween()
    public
            static        notBetween(string $fields, mixed $value1, mixed $value2) : self
        
        Parameters
- $fields : string
 - $value1 : mixed
 - $value2 : mixed
 
Return values
self —notEq()
    public
            static        notEq(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —notIn()
    public
            static        notIn(string $fields, mixed $values) : self
        
        Parameters
- $fields : string
 - $values : mixed
 
Return values
self —notLike()
    public
            static        notLike(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —or()
    public
            static        or(string $fields, mixed $value[, string $operator = '=' ]) : self
        
        Parameters
- $fields : string
 - $value : mixed
 - $operator : string = '='
 
Return values
self —orBetween()
    public
            static        orBetween(string $fields, mixed $value1, mixed $value2) : self
        
        Parameters
- $fields : string
 - $value1 : mixed
 - $value2 : mixed
 
Return values
self —orEq()
    public
            static        orEq(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —orGt()
    public
            static        orGt(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —orGte()
    public
            static        orGte(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —orIn()
    public
            static        orIn(string $fields, mixed $values) : self
        
        Parameters
- $fields : string
 - $values : mixed
 
Return values
self —orIsNotNull()
    public
            static        orIsNotNull(string $fields) : self
        
        Parameters
- $fields : string
 
Return values
self —orIsNull()
    public
            static        orIsNull(string $fields) : self
        
        Parameters
- $fields : string
 
Return values
self —orLike()
    public
            static        orLike(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —orLt()
    public
            static        orLt(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —orLte()
    public
            static        orLte(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —orNotBetween()
    public
            static        orNotBetween(string $fields, mixed $value1, mixed $value2) : self
        
        Parameters
- $fields : string
 - $value1 : mixed
 - $value2 : mixed
 
Return values
self —orNotEq()
    public
            static        orNotEq(string $fields, mixed $value) : self
        
        Parameters
- $fields : string
 - $value : mixed
 
Return values
self —orNotIn()
    public
            static        orNotIn(string $fields, mixed $values) : self
        
        Parameters
- $fields : string
 - $values : mixed
 
Return values
self —orNotLike()
    public
            static        orNotLike(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —orRegexp()
    public
            static        orRegexp(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —orSub()
    public
            static        orSub(array<string|int, mixed> $where) : self
        
        Parameters
- $where : array<string|int, mixed>
 
Return values
self —orXlike()
    public
            static        orXlike(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —regexp()
    public
            static        regexp(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —sql()
    public
                    sql() : string
        
    
    
        Return values
string —sub()
    public
            static        sub(array<string|int, mixed> $where[, string $operation = 'AND' ]) : self
        
        Parameters
- $where : array<string|int, mixed>
 - $operation : string = 'AND'
 
Return values
self —xlike()
    public
            static        xlike(string $fields, string $value) : self
        
        Parameters
- $fields : string
 - $value : string
 
Return values
self —db()
    private
            static        db() : DataBase
        
    
    
        Return values
DataBase —sqlColumn()
    private
            static        sqlColumn(string $field) : string
        
        Parameters
- $field : string
 
Return values
string —sqlOperatorBetween()
    private
            static        sqlOperatorBetween(string $field, mixed $values, string $operator) : string
        
        Parameters
- $field : string
 - $values : mixed
 - $operator : string
 
Return values
string —sqlOperatorIn()
    private
            static        sqlOperatorIn(string $field, mixed $values, string $operator) : string
        
        Parameters
- $field : string
 - $values : mixed
 - $operator : string
 
Return values
string —sqlOperatorLike()
    private
            static        sqlOperatorLike(string $field, string $value, string $operator) : string
        
        Parameters
- $field : string
 - $value : string
 - $operator : string
 
Return values
string —sqlOperatorXLike()
    private
            static        sqlOperatorXLike(string $field, string $value) : string
        
        Parameters
- $field : string
 - $value : string
 
Return values
string —sqlValue()
    private
            static        sqlValue(mixed $value) : string
        
        Parameters
- $value : mixed