Method | Description | |
---|---|---|
__call ( $method, $params ) | Triggers either the and() or or() methods | |
__construct ( $where = null, $params = [] ) | Constructor | |
__toString ( ) | ||
bind ( $sql, $params = [] ) : string | Binds an array of parameters into a string | |
concatAnd ( ) : |
Joins all parameters together with AND | |
concatOr ( ) : |
Joins all parameters together with OR | |
isEmpty ( ) | Returns whether the criteria is empty | |
toSql ( $braces = true ) | Returns the sql representation of the where clause |
public __construct ( $where = null, $params = [] ) | ||
$where | either a query string, or a key=>val array | |
$params | mixed, parameters to bind into the query string |
public static concatAnd ( ) : |
||
return |
public static concatOr ( ) : |
||
return |
public toSql ( $braces = true ) |