Class

eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\AbstractFilter

abstract class AbstractFilter implements FilterInterface

Base implementation of FilterInterface, handling options.

Methods

__construct(array $options = array())

setOption(string $optionName, mixed $value)

Sets $value for $optionName.

mixed getOption(string $optionName, null|mixed $defaultValue = null)

Returns value for $optionName.

bool hasOption(string $optionName)

Checks if $optionName exists and has a value.

setOptions(array $options)

Replaces inner options by $options.

array getOptions()

Returns all options.

Details

at line 21
public __construct(array $options = array())

Parameters

array $options

at line 26
public setOption(string $optionName, mixed $value)

Sets $value for $optionName.

Parameters

string $optionName
mixed $value

at line 31
public mixed getOption(string $optionName, null|mixed $defaultValue = null)

Returns value for $optionName.

Defaults to $defaultValue if $optionName doesn't exist.

Parameters

string $optionName
null|mixed $defaultValue

Return Value

mixed

at line 36
public bool hasOption(string $optionName)

Checks if $optionName exists and has a value.

Parameters

string $optionName

Return Value

bool

at line 41
public setOptions(array $options)

Replaces inner options by $options.

Parameters

array $options

at line 46
public array getOptions()

Returns all options.

Return Value

array