void addFilter(
mixed
$left, [mixed
$right = null], [int
$operator = self::OPERATOR_EQUAL], [int
$criterium = self::CRITERIUM_AND]
)
|
|
General-purpose filter.
General-purpose filter.
Appends new filter in universal way. You can append either literal value comparsion, fields comparsion or another filter object as sub-condition.
To append subset of another filters use addFilter($OTS_SQLFilterObject).
Parameters:
|
mixed |
$left: |
Left side (OTS_SQLField class object, OTS_SQLFilter class object, or literal value). |
|
mixed |
$right: |
Right side (OTS_SQLField class object, or literal value). |
|
int |
$operator: |
Operator used for comparsion (equal check by default). |
|
int |
$criterium: |
Criterium merging method (AND by default). |
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Since: | 0.0.5 |
void compareField(
string
$field, mixed
$value, [int
$operator = self::OPERATOR_EQUAL], [int
$criterium = self::CRITERIUM_AND]
)
|
|
Compares field with a literal value.
Compares field with a literal value.
Parameters:
|
string |
$field: |
Field name. |
|
mixed |
$value: |
Literal value. |
|
int |
$operator: |
Operator used for comparsion (equal by default). |
|
int |
$criterium: |
Criterium merging method (AND by default). |
API Tags:
Information Tags:
| Version: | 0.0.5 |
| Since: | 0.0.5 |
Returns list of all tables used by filter.
Returns list of all tables used by filter.
This is required for FROM clause.
API Tags:
| Return: | List of all tables used by this filter. |
| Access: | public |
Information Tags:
| Version: | 0.0.5 |
| Since: | 0.0.5 |
Creates clone of object.
Creates clone of object.
This method is empty to override OTS_Base_DAO method.
API Tags:
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.5 |
| Since: | 0.0.5 |
| Since: | 0.1.3 |
Redefinition of:
- OTS_Base_DAO::__clone()
- Creates clone of object.
mixed __get(
string
$name
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:
|
string |
$name: |
Property name. |
API Tags:
| Return: | Property value. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.5 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.1.0 |
| Since: | 0.0.5 |
Magic PHP5 method.
Magic PHP5 method.
Allows object serialisation.
API Tags:
| Return: | List of properties that should be saved. |
| Access: | public |
Information Tags:
| Version: | 0.0.5 |
| Since: | 0.0.5 |
Redefinition of:
- OTS_Base_DAO::__sleep()
- Magic PHP5 method.
Returns string representation of WHERE clause.
Returns string representation of WHERE clause.
Returned string can be easily inserted into SQL query.
API Tags:
| Return: | String WHERE clause. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.5 |
| Since: | 0.0.5 |