Where clause to be used in queries
Definition at line 10 of file where.class.php.
◆ __toString()
◆ add()
Add a new clause
- Parameters
-
string | array | $prm | String for a raw clause or an array with the keys:
- field string The field on which the clause is tested (required)
- op string The operator for testing (default: =)
- val string The value to test against (required)
|
Definition at line 68 of file where.class.php.
◆ afterInit()
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ clear()
◆ count()
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getClauses()
◆ getDb()
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ setClauses()
setClauses |
( |
array |
$clauses | ) |
|
◆ toArray()
Get the clauses as an array
- Returns
- array With keys:
- bind array value to bind
- where string Full Where clause to use
Definition at line 85 of file where.class.php.
◆ toString()
Get the where clause as a string
- Returns
- string
Definition at line 125 of file where.class.php.
◆ $cfg
◆ $clauses
The documentation for this class was generated from the following file: