PHP Класс Smile\ElasticsuiteCore\Block\Adminhtml\Search\Request\RelevanceConfig\Scope\Switcher

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

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

Свойство Тип Описание
$containersSource Smile\ElasticsuiteCore\Model\Search\Request\Source\Containers
$defaultContainerVar string Name of container variable
$defaultStoreVarName string Name of store variable
$hasDefaultOption boolean
$storeFactory Magento\Store\Model\StoreFactory Store Factory
$storeIds array

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

Метод Описание
__construct ( Magento\Backend\Block\Template\Context $context, Magento\Store\Model\StoreFactory $storeFactory, Containers $containersSource, array $data = [] ) Class constructor
getContainerCode ( ) : string | null Retrieve container code
getContainerLabel ( array $container ) : mixed Get container name
getContainerName ( array $container ) : mixed Get container name
getContainerVarName ( ) : string Retrieve container var name
getContainers ( ) : array Get containers
getCurrentContainerLabel ( ) : string Get current container name
getCurrentContainerName ( ) : string Get current container name
getCurrentSelectionName ( ) : string Get current selection name
getCurrentStoreName ( ) : string Get current store view name
getStoreId ( ) : integer | null Retrieve Store Id
getStoreVarName ( ) : mixed | string Retrieve store var name
getStores ( ) : Magento\Store\Model\Store[] Get store views
getSwitchUrl ( ) : string Retrieve switch url
hasDefaultOption ( boolean $hasDefaultOption = null ) : boolean Set/Get whether the switcher should show default option
hasScopeSelected ( ) : boolean
isContainerSelected ( array $container ) : boolean Check if container is selected
isContainerSwitchEnabled ( ) : boolean Check if can switch to containers
isFullText ( array $container ) : boolean Check if container is used for fulltext queries
isStoreSelected ( Magento\Store\Model\Store $store ) : boolean
isStoreSwitchEnabled ( ) : boolean Check if can switch to store views
setContainerVarName ( string $varName )
setStoreVarName ( string $varName )

Защищенные методы

Метод Описание
_construct ( ) : void Internal constructor

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

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

Class constructor
public __construct ( Magento\Backend\Block\Template\Context $context, Magento\Store\Model\StoreFactory $storeFactory, Containers $containersSource, array $data = [] )
$context Magento\Backend\Block\Template\Context Application context
$storeFactory Magento\Store\Model\StoreFactory Store factory
$containersSource Smile\ElasticsuiteCore\Model\Search\Request\Source\Containers The Containers source model
$data array The data

_construct() защищенный Метод

Internal constructor
protected _construct ( ) : void
Результат void

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

Retrieve container code
public getContainerCode ( ) : string | null
Результат string | null

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

Get container name
public getContainerLabel ( array $container ) : mixed
$container array The container name
Результат mixed

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

Get container name
public getContainerName ( array $container ) : mixed
$container array The container name
Результат mixed

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

Retrieve container var name
public getContainerVarName ( ) : string
Результат string

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

Get containers
public getContainers ( ) : array
Результат array

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

Get current container name
public getCurrentContainerLabel ( ) : string
Результат string

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

Get current container name
public getCurrentContainerName ( ) : string
Результат string

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

Get current selection name
public getCurrentSelectionName ( ) : string
Результат string

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

Get current store view name
public getCurrentStoreName ( ) : string
Результат string

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

Retrieve Store Id
public getStoreId ( ) : integer | null
Результат integer | null

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

Retrieve store var name
public getStoreVarName ( ) : mixed | string
Результат mixed | string

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

Get store views
public getStores ( ) : Magento\Store\Model\Store[]
Результат Magento\Store\Model\Store[]

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

Retrieve switch url
public getSwitchUrl ( ) : string
Результат string

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

Set/Get whether the switcher should show default option
public hasDefaultOption ( boolean $hasDefaultOption = null ) : boolean
$hasDefaultOption boolean If witcher has default option
Результат boolean

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

public hasScopeSelected ( ) : boolean
Результат boolean

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

Check if container is selected
public isContainerSelected ( array $container ) : boolean
$container array The container
Результат boolean

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

Check if can switch to containers
public isContainerSwitchEnabled ( ) : boolean
Результат boolean

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

Check if container is used for fulltext queries
public isFullText ( array $container ) : boolean
$container array The container name
Результат boolean

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

public isStoreSelected ( Magento\Store\Model\Store $store ) : boolean
$store Magento\Store\Model\Store The store
Результат boolean

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

Check if can switch to store views
public isStoreSwitchEnabled ( ) : boolean
Результат boolean

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

public setContainerVarName ( string $varName )
$varName string The var name

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

public setStoreVarName ( string $varName )
$varName string The var name

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

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

protected Containers,Smile\ElasticsuiteCore\Model\Search\Request\Source $containersSource
Результат Smile\ElasticsuiteCore\Model\Search\Request\Source\Containers

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

Name of container variable
protected string $defaultContainerVar
Результат string

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

Name of store variable
protected string $defaultStoreVarName
Результат string

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

protected bool $hasDefaultOption
Результат boolean

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

Store Factory
protected StoreFactory,Magento\Store\Model $storeFactory
Результат Magento\Store\Model\StoreFactory

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

protected array $storeIds
Результат array