PHP Class Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Slider

Author: Aurelien FOUCRET ([email protected])
Author: Romain Ruaud ([email protected])
Inheritance: extends AbstractRenderer
Afficher le fichier Open project: smile-sa/elasticsuite Class Usage Examples

Protected Properties

Свойство Type Description
$dataRole string The Data role, used for Javascript mapping of slider Widget
$localeFormat Magento\Framework\Locale\FormatInterface

Méthodes publiques

Méthode Description
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\EncoderInterface $jsonEncoder, Magento\Framework\Locale\FormatInterface $localeFormat, array $data = [] )
getDataRole ( ) : string Retrieve the data role
getJsonConfig ( ) : string Return the config of the price slider JS widget.

Méthodes protégées

Méthode Description
canRenderFilter ( ) {@inheritDoc}
getConfig ( ) : array Retrieve configuration
getFieldFormat ( ) : array Retrieve Field Format for slider display
getMaxValue ( ) : integer Returns max value of the slider.
getMinValue ( ) : integer Returns min value of the slider.

Private Methods

Méthode Description
getCurrentValue ( ) : array Returns values currently selected by the user.
getIntervals ( ) : array Return available intervals.
getUrlTemplate ( ) : string Retrieve filter URL template with placeholders for range.

Method Details

__construct() public méthode

public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\EncoderInterface $jsonEncoder, Magento\Framework\Locale\FormatInterface $localeFormat, array $data = [] )
$context Magento\Framework\View\Element\Template\Context Template context.
$jsonEncoder Magento\Framework\Json\EncoderInterface JSON Encoder.
$localeFormat Magento\Framework\Locale\FormatInterface Price format config.
$data array Custom data.

canRenderFilter() protected méthode

{@inheritDoc}
protected canRenderFilter ( )

getConfig() protected méthode

Retrieve configuration
protected getConfig ( ) : array
Résultat array

getDataRole() public méthode

Retrieve the data role
public getDataRole ( ) : string
Résultat string

getFieldFormat() protected méthode

Retrieve Field Format for slider display
protected getFieldFormat ( ) : array
Résultat array

getJsonConfig() public méthode

Return the config of the price slider JS widget.
public getJsonConfig ( ) : string
Résultat string

getMaxValue() protected méthode

Returns max value of the slider.
protected getMaxValue ( ) : integer
Résultat integer

getMinValue() protected méthode

Returns min value of the slider.
protected getMinValue ( ) : integer
Résultat integer

Property Details

$dataRole protected_oe property

The Data role, used for Javascript mapping of slider Widget
protected string $dataRole
Résultat string

$localeFormat protected_oe property

protected FormatInterface,Magento\Framework\Locale $localeFormat
Résultat Magento\Framework\Locale\FormatInterface