DateRangeConditionHandler
in package
implements
HandlerInterface
Uses
ConditionHandlerHelperTrait
Table of Contents
Interfaces
Methods
- canHandle() : bool
- execute() : CDbCriteria|CSort
- Builds criteria for either one or multiple keys.
- sanitizeKey() : string
- stripKey() : string
- More strict strip of a key without quotation
- parseRange() : array<string|int, mixed>
- validateDate() : string|false
Methods
canHandle()
public
canHandle(string $operation) : bool
Parameters
- $operation : string
Return values
boolexecute()
Builds criteria for either one or multiple keys.
public
execute(mixed $key, mixed $value) : CDbCriteria|CSort
Parameters
- $key : mixed
- $value : mixed
Return values
CDbCriteria|CSortsanitizeKey()
public
sanitizeKey(string $key) : string
Parameters
- $key : string
Return values
stringstripKey()
More strict strip of a key without quotation
public
stripKey(string $key) : string
Parameters
- $key : string
Return values
stringparseRange()
protected
parseRange(array<string|int, mixed> $range) : array<string|int, mixed>
Parameters
- $range : array<string|int, mixed>
Return values
array<string|int, mixed>validateDate()
private
validateDate(string|null $date[, bool $max = false ]) : string|false
Parameters
- $date : string|null
- $max : bool = false