PHP Class Smile\ElasticsuiteTracker\Block\Config

Author: Romain Ruaud ([email protected])
Inheritance: extends Magento\Framework\View\Element\Template
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__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

Method Details

__construct() public method

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() public method

Retrieve beacon Url
public getBeaconUrl ( ) : string
return string

getCookieConfig() public method

Return the session cookie configuration (names and lifetimes) for cookies used by the tracker (visit/session and visitor).
public getCookieConfig ( ) : array
return array

getJsonHelper() public method

Retrieve the Json Helper
public getJsonHelper ( ) : Magento\Framework\Json\Helper\Data
return Magento\Framework\Json\Helper\Data

getStoreId() public method

Return the tracked store id.
public getStoreId ( ) : integer
return integer

isEnabled() public method

Check that the module is currently enabled
public isEnabled ( ) : boolean
return boolean