PHP 클래스 Smile\ElasticsuiteCore\Block\Adminhtml\Search\Request\RelevanceConfig\Scope\Switcher

저자: Romain Ruaud ([email protected])
상속: extends Magento\Backend\Block\Template
파일 보기 프로젝트 열기: smile-sa/elasticsuite

보호된 프로퍼티들

프로퍼티 타입 설명
$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

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