Documentation

StringFilter extends Filter

Table of Contents

$type  : string
$container  : Container
$default  : mixed
$defaultValueSet  : bool
$name  : string
$options  : array<string|int, mixed>
$optionsRequestCallback  : Closure
container()  : void
created()  : void
default()  : Filter
getDefaultValue()  : mixed
getOptions()  : array<string|int, mixed>
hasDefaultValue()  : bool
name()  : Filter
options()  : Filter
optionsRequest()  : Filter
toSchemaJson()  : array<string|int, mixed>
setup()  : void

Properties

$default

protected mixed $default

$defaultValueSet

protected bool $defaultValueSet = false

$options

protected array<string|int, mixed> $options

$optionsRequestCallback

protected Closure $optionsRequestCallback

Methods

default()

public default(mixed $default) : Filter
Parameters
$default : mixed
Return values
Filter

getDefaultValue()

public getDefaultValue() : mixed
Return values
mixed

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasDefaultValue()

public hasDefaultValue() : bool
Return values
bool

name()

public name(string $name) : Filter
Parameters
$name : string
Return values
Filter

options()

public options(array<string|int, mixed> $options) : Filter
Parameters
$options : array<string|int, mixed>
Return values
Filter

optionsRequest()

public optionsRequest(Closure $callback) : Filter
Parameters
$callback : Closure
Return values
Filter

toSchemaJson()

public toSchemaJson() : array<string|int, mixed>
Return values
array<string|int, mixed>

setup()

protected setup() : void
Return values
void

Search results