LimeSurvey API - Master branch

DateRangeConditionHandler
in package
implements HandlerInterface Uses ConditionHandlerHelperTrait

Table of Contents

Interfaces

HandlerInterface

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

execute()

Builds criteria for either one or multiple keys.

public execute(mixed $key, mixed $value) : CDbCriteria|CSort
Parameters
$key : mixed
$value : mixed
Return values
CDbCriteria|CSort

stripKey()

More strict strip of a key without quotation

public stripKey(string $key) : string
Parameters
$key : string
Return values
string

parseRange()

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
Return values
string|false

        
On this page

Search results