PHP Класс Smile\ElasticsuiteTracker\Helper\Data

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

Защищенные свойства (Protected)

Свойство Тип Описание
$scopeConfig Magento\Framework\App\Config\ScopeConfigInterface Magento Configuration

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

Метод Описание
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\View\Asset\Repository $assetRepository ) PHP Constructor
getBaseUrl ( ) : string Return the tracking base URL (params are added later)
getCookieConfig ( ) : array Return an array containing the cookie configuration
getStoreId ( ) : integer Retrieve current store Id
isEnabled ( ) : boolean Return the module activation status

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

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

PHP Constructor
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\View\Asset\Repository $assetRepository )
$context Magento\Framework\App\Helper\Context The current context
$storeManager Magento\Store\Model\StoreManagerInterface The Store Manager
$assetRepository Magento\Framework\View\Asset\Repository The asset repository

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

Return the tracking base URL (params are added later)
public getBaseUrl ( ) : string
Результат string

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

Return an array containing the cookie configuration
public getCookieConfig ( ) : array
Результат array

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

Retrieve current store Id
public getStoreId ( ) : integer
Результат integer

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

Return the module activation status
public isEnabled ( ) : boolean
Результат boolean

Описание свойств

$scopeConfig защищенное свойство

Magento Configuration
protected ScopeConfigInterface,Magento\Framework\App\Config $scopeConfig
Результат Magento\Framework\App\Config\ScopeConfigInterface