PHP Класс Smile\ElasticsuiteTracker\Block\Config

Автор: Romain Ruaud ([email protected])
Наследование: extends Magento\Framework\View\Element\Template
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, array $data = [] ) PHP Constructor
getBeaconUrl ( ) : string Retrieve beacon Url
getCookieConfig ( ) : array Return the session cookie configuration (names and lifetimes) for cookies used by the tracker (visit/session and visitor).
getJsonHelper ( ) : Magento\Framework\Json\Helper\Data Retrieve the Json Helper
getStoreId ( ) : integer Return the tracked store id.
isEnabled ( ) : boolean Check that the module is currently enabled

Описание методов

__construct() публичный Метод

PHP Constructor
public __construct ( Magento\Framework\View\Element\Template\Context $context, Magento\Framework\Json\Helper\Data $jsonHelper, Data $trackerHelper, array $data = [] )
$context Magento\Framework\View\Element\Template\Context App context
$jsonHelper Magento\Framework\Json\Helper\Data The Magento's JSON Helper
$trackerHelper Smile\ElasticsuiteTracker\Helper\Data The Smile Tracker helper
$data array additional datas

getBeaconUrl() публичный Метод

Retrieve beacon Url
public getBeaconUrl ( ) : string
Результат string

getCookieConfig() публичный Метод

Return the session cookie configuration (names and lifetimes) for cookies used by the tracker (visit/session and visitor).
public getCookieConfig ( ) : array
Результат array

getJsonHelper() публичный Метод

Retrieve the Json Helper
public getJsonHelper ( ) : Magento\Framework\Json\Helper\Data
Результат Magento\Framework\Json\Helper\Data

getStoreId() публичный Метод

Return the tracked store id.
public getStoreId ( ) : integer
Результат integer

isEnabled() публичный Метод

Check that the module is currently enabled
public isEnabled ( ) : boolean
Результат boolean