PHP Interface eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\FilterInterface

Inheritance: extends Imagine\Filter\FilterInterface
Mostra file Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Public Methods

Method Description
getOption ( string $optionName, null | mixed $defaultValue = null ) : mixed Returns value for $optionName.
getOptions ( ) : array Returns all options.
hasOption ( string $optionName ) : boolean Checks if $optionName exists and has a value.
setOption ( string $optionName, mixed $value ) Sets $value for $optionName.
setOptions ( array $options ) Replaces inner options by $options.

Method Details

getOption() public method

Defaults to $defaultValue if $optionName doesn't exist.
public getOption ( string $optionName, null | mixed $defaultValue = null ) : mixed
$optionName string
$defaultValue null | mixed
return mixed

getOptions() public method

Returns all options.
public getOptions ( ) : array
return array

hasOption() public method

Checks if $optionName exists and has a value.
public hasOption ( string $optionName ) : boolean
$optionName string
return boolean

setOption() public method

Sets $value for $optionName.
public setOption ( string $optionName, mixed $value )
$optionName string
$value mixed

setOptions() public method

Replaces inner options by $options.
public setOptions ( array $options )
$options array