PHP Class WellCommerce\Component\DataGrid\Configuration\AbstractOption

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Component\DataGrid\Configuration\OptionInterface
Exibir arquivo Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$options array

Public Methods

Method Description
__construct ( array $options = [] ) Constructor
__toString ( ) : string Returns string containing all DataGrid options
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
get ( string $key ) : mixed Returns option value if exists
has ( string $key ) : boolean Checks if key exists in options array

Protected Methods

Method Description
prepareValue ( $value ) : string Prepares value to use in DataGrid JS configuration

Method Details

__construct() public method

Constructor
public __construct ( array $options = [] )
$options array

__toString() public method

Returns string containing all DataGrid options
public __toString ( ) : string
return string

configureOptions() abstract public method

abstract public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

get() public method

Returns option value if exists
public get ( string $key ) : mixed
$key string
return mixed

has() public method

Checks if key exists in options array
public has ( string $key ) : boolean
$key string
return boolean

prepareValue() protected method

Prepares value to use in DataGrid JS configuration
protected prepareValue ( $value ) : string
$value
return string

Property Details

$options protected_oe property

protected array $options
return array