PHP Class WellCommerce\Component\DataGrid\Configuration\AbstractOption

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

Protected Properties

Свойство Type Description
$options array

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
prepareValue ( $value ) : string Prepares value to use in DataGrid JS configuration

Method Details

__construct() public méthode

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

__toString() public méthode

Returns string containing all DataGrid options
public __toString ( ) : string
Résultat string

configureOptions() abstract public méthode

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

get() public méthode

Returns option value if exists
public get ( string $key ) : mixed
$key string
Résultat mixed

has() public méthode

Checks if key exists in options array
public has ( string $key ) : boolean
$key string
Résultat boolean

prepareValue() protected méthode

Prepares value to use in DataGrid JS configuration
protected prepareValue ( $value ) : string
$value
Résultat string

Property Details

$options protected_oe property

protected array $options
Résultat array