$sql
$sql : \Pop\Db\Sql\AbstractSql
SQL object
Predicate class
$sql : \Pop\Db\Sql\AbstractSql
SQL object
__construct(\Pop\Db\Sql\AbstractSql $sql, boolean $nested = false)
Constructor
Instantiate the predicate collection object.
\Pop\Db\Sql\AbstractSql | $sql | |
boolean | $nested |
nest() : \Pop\Db\Sql\Predicate
Add a nested predicate
andNest() : \Pop\Db\Sql\Predicate
Add a nested predicate with AND
orNest() : \Pop\Db\Sql\Predicate
Add a nested predicate with OR
setNestedCombine(string $combine) : \Pop\Db\Sql\Predicate
Get nested combine
string | $combine |
add(mixed $predicate) : \Pop\Db\Sql\Predicate
Add a predicate from a string
mixed | $predicate |
getLastPredicateSet() : \Pop\Db\Sql\Predicate\AbstractPredicateSet
Get last predicate set added
equalTo(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for =
string | $column | |
string | $value |
notEqualTo(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for !=
string | $column | |
string | $value |
greaterThan(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for >
string | $column | |
string | $value |
greaterThanOrEqualTo(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for >=
string | $column | |
string | $value |
lessThan(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for <
string | $column | |
string | $value |
lessThanOrEqualTo(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for <=
string | $column | |
string | $value |
like(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for LIKE
string | $column | |
string | $value |
notLike(string $column, string $value) : \Pop\Db\Sql\Predicate
Predicate for NOT LIKE
string | $column | |
string | $value |
between(string $column, string $value1, string $value2) : \Pop\Db\Sql\Predicate
Predicate for BETWEEN
string | $column | |
string | $value1 | |
string | $value2 |
notBetween(string $column, string $value1, string $value2) : \Pop\Db\Sql\Predicate
Predicate for NOT BETWEEN
string | $column | |
string | $value1 | |
string | $value2 |
in(string $column, mixed $values) : \Pop\Db\Sql\Predicate
Predicate for IN
string | $column | |
mixed | $values |
notIn(string $column, mixed $values) : \Pop\Db\Sql\Predicate
Predicate for NOT IN
string | $column | |
mixed | $values |
isNull(string $column) : \Pop\Db\Sql\Predicate
Predicate for IS NULL
string | $column |
isNotNull(string $column) : \Pop\Db\Sql\Predicate
Predicate for IS NOT NULL
string | $column |