string _sanitize(
mixed
$value)
|
|
Forces the value to an ISO-8601 formatted timestamp using a space separator ("yyyy-mm-dd hh:ii:ss") instead of a "T" separator.
Tags:
Overridden in child classes as:
- KFilterTime::_sanitize()
- Forces the value to an ISO-8601 formatted time ("hh:ii:ss").
- KFilterDate::_sanitize()
- Forces the value to an ISO-8601 formatted date ("yyyy-mm-dd").
Overrides
KFilterAbstract::_sanitize() (Sanitize a variable only)
Parameters:
bool _validate(
mixed
$value)
|
|
Validates that the value is an ISO 8601 timestamp string.
The format is "yyyy-mm-ddThh:ii:ss" (note the literal "T" in the middle, which acts as a separator -- may also be a space). As an alternative, the value may be an array with all of the keys for `Y, m, d, H, i`, and optionally `s`, in which case the value is converted to an ISO 8601 string before validating it.
Also checks that the date itself is valid (for example, no Feb 30).
Tags:
Overridden in child classes as:
- KFilterTime::_validate()
- Validates that the value is an ISO 8601 time string (hh:ii::ss format).
- KFilterDate::_validate()
- Validates that a value is an ISO 8601 date string
Overrides
KFilterAbstract::_validate() (Validate a variable)
Parameters: