|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Backend\Block\Template\Context $context, \Magento\Store\Model\WebsiteFactory $websiteFactory, \Magento\Store\Model\GroupFactory $storeGroupFactory, \Magento\Store\Model\StoreFactory $storeFactory, array $data=[]) | |
| getWebsiteCollection () | |
| getWebsites () | |
| isWebsiteSwitchEnabled () | |
| setWebsiteVarName ($varName) | |
| getWebsiteVarName () | |
| isWebsiteSelected (\Magento\Store\Model\Website $website) | |
| getWebsiteId () | |
| getGroupCollection ($website) | |
| getStoreGroups ($website) | |
| isStoreGroupSwitchEnabled () | |
| setStoreGroupVarName ($varName) | |
| getStoreGroupVarName () | |
| isStoreGroupSelected (\Magento\Store\Model\Group $group) | |
| getStoreGroupId () | |
| getStoreCollection ($group) | |
| getStores ($group) | |
| getStoreId () | |
| isStoreSelected (\Magento\Store\Model\Store $store) | |
| isStoreSwitchEnabled () | |
| setStoreVarName ($varName) | |
| getStoreVarName () | |
| getSwitchUrl () | |
| hasScopeSelected () | |
| getCurrentSelectionName () | |
| getCurrentWebsiteName () | |
| getCurrentStoreGroupName () | |
| getCurrentStoreName () | |
| setStoreIds ($storeIds) | |
| getStoreIds () | |
| isShow () | |
| hasDefaultOption ($hasDefaultOption=null) | |
| getHintUrl () | |
| getHintHtml () | |
| isUsingIframe () | |
Public Member Functions inherited from Template | |
| __construct (\Magento\Backend\Block\Template\Context $context, array $data=[]) | |
| getFormKey () | |
| isOutputEnabled ($moduleName=null) | |
| getAuthorization () | |
| getToolbar () | |
Public Member Functions inherited from Template | |
| __construct (Template\Context $context, array $data=[]) | |
| setTemplateContext ($templateContext) | |
| getTemplate () | |
| setTemplate ($template) | |
| getTemplateFile ($template=null) | |
| getArea () | |
| assign ($key, $value=null) | |
| fetchView ($fileName) | |
| getBaseUrl () | |
| getObjectData (\Magento\Framework\DataObject $object, $key) | |
| getCacheKeyInfo () | |
Public Member Functions inherited from AbstractBlock | |
| __construct (\Magento\Framework\View\Element\Context $context, array $data=[]) | |
| getJsLayout () | |
| getRequest () | |
| getParentBlock () | |
| setLayout (\Magento\Framework\View\LayoutInterface $layout) | |
| getLayout () | |
| setNameInLayout ($name) | |
| getChildNames () | |
| setAttribute ($name, $value=null) | |
| setChild ($alias, $block) | |
| addChild ($alias, $block, $data=[]) | |
| unsetChild ($alias) | |
| unsetCallChild ($alias, $callback, $result, $params) | |
| unsetChildren () | |
| getChildBlock ($alias) | |
| getChildHtml ($alias='', $useCache=true) | |
| getChildChildHtml ($alias, $childChildAlias='', $useCache=true) | |
| getBlockHtml ($name) | |
| insert ($element, $siblingName=0, $after=true, $alias='') | |
| append ($element, $alias='') | |
| getGroupChildNames ($groupName) | |
| getChildData ($alias, $key='') | |
| getUiId ($arg1=null, $arg2=null, $arg3=null, $arg4=null, $arg5=null) | |
| getJsId ($arg1=null, $arg2=null, $arg3=null, $arg4=null, $arg5=null) | |
| getUrl ($route='', $params=[]) | |
| getViewFileUrl ($fileId, array $params=[]) | |
| formatDate ( $date=null, $format=\IntlDateFormatter::SHORT, $showTime=false, $timezone=null) | |
| formatTime ( $time=null, $format=\IntlDateFormatter::SHORT, $showDate=false) | |
| getModuleName () | |
| escapeHtml ($data, $allowedTags=null) | |
| escapeJs ($string) | |
| escapeHtmlAttr ($string, $escapeSingleQuote=true) | |
| escapeCss ($string) | |
| stripTags ($data, $allowableTags=null, $allowHtmlEntities=false) | |
| escapeUrl ($string) | |
| escapeXssInUrl ($data) | |
| escapeQuote ($data, $addSlashes=false) | |
| escapeJsQuote ($data, $quote='\'') | |
| getNameInLayout () | |
| getCacheKeyInfo () | |
| getCacheKey () | |
| getVar ($name, $module=null) | |
| isScopePrivate () | |
Public Member Functions inherited from DataObject | |
| __construct (array $data=[]) | |
| addData (array $arr) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| getDataByPath ($path) | |
| getDataByKey ($key) | |
| setDataUsingMethod ($key, $args=[]) | |
| getDataUsingMethod ($key, $args=null) | |
| hasData ($key='') | |
| toArray (array $keys=[]) | |
| convertToArray (array $keys=[]) | |
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| toJson (array $keys=[]) | |
| convertToJson (array $keys=[]) | |
| toString ($format='') | |
| __call ($method, $args) | |
| isEmpty () | |
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
| debug ($data=null, &$objects=[]) | |
| offsetSet ($offset, $value) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
| offsetGet ($offset) | |
Public Member Functions inherited from BlockInterface | |
| toHtml () | |
Data Fields | |
| const | HINT_URL = 'http://docs.magento.com/m2/ce/user_guide/configuration/scope.html' |
Data Fields inherited from Template | |
| const | XML_PATH_TEMPLATE_ALLOW_SYMLINK = 'dev/template/allow_symlink' |
Data Fields inherited from AbstractBlock | |
| const | CACHE_GROUP = \Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER |
| const | CACHE_KEY_PREFIX = 'BLOCK_' |
Protected Member Functions | |
| _construct () | |
| _toHtml () | |
Protected Member Functions inherited from Template | |
| _toHtml () | |
Protected Member Functions inherited from Template | |
| _construct () | |
| _toHtml () | |
| getRootDirectory () | |
| getMediaDirectory () | |
Protected Member Functions inherited from AbstractBlock | |
| _construct () | |
| _prepareLayout () | |
| _beforeToHtml () | |
| _afterToHtml ($html) | |
| _toHtml () | |
| _getNotFoundUrl ($route='', $params=['_direct'=> 'core/index/notFound']) | |
| getCacheTags () | |
| getCacheLifetime () | |
| _loadCache () | |
| _saveCache ($data) | |
| _getSidPlaceholder ($cacheKey=null) | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractBlock | |
| static | extractModuleName ($className) |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
| __construct | ( | \Magento\Backend\Block\Template\Context | $context, |
| \Magento\Store\Model\WebsiteFactory | $websiteFactory, | ||
| \Magento\Store\Model\GroupFactory | $storeGroupFactory, | ||
| \Magento\Store\Model\StoreFactory | $storeFactory, | ||
| array | $data = [] |
||
| ) |
| \Magento\Backend\Block\Template\Context | $context | |
| \Magento\Store\Model\WebsiteFactory | $websiteFactory | |
| \Magento\Store\Model\GroupFactory | $storeGroupFactory | |
| \Magento\Store\Model\StoreFactory | $storeFactory | |
| array | $data |
Definition at line 95 of file Switcher.php.
|
protected |
|
protected |
| getCurrentSelectionName | ( | ) |
Get current selection name
Definition at line 414 of file Switcher.php.
| getCurrentStoreGroupName | ( | ) |
| getCurrentStoreName | ( | ) |
| getCurrentWebsiteName | ( | ) |
| getGroupCollection | ( | $website | ) |
| int | \Magento\Store\Model\Website | $website |
Definition at line 217 of file Switcher.php.
| getHintHtml | ( | ) |
Return store switcher hint html
Definition at line 540 of file Switcher.php.
| getHintUrl | ( | ) |
| getStoreCollection | ( | $group | ) |
| \Magento\Store\Model\Group | int | $group |
Definition at line 295 of file Switcher.php.
| getStoreGroupId | ( | ) |
Definition at line 283 of file Switcher.php.
| getStoreGroups | ( | $website | ) |
Get store groups for specified website
| \Magento\Store\Model\Website | int | $website |
Definition at line 231 of file Switcher.php.
| getStoreGroupVarName | ( | ) |
Definition at line 262 of file Switcher.php.
| getStoreId | ( | ) |
Definition at line 333 of file Switcher.php.
| getStoreIds | ( | ) |
| getStores | ( | $group | ) |
Get store views for specified store group
| \Magento\Store\Model\Group | int | $group |
Definition at line 314 of file Switcher.php.
| getStoreVarName | ( | ) |
Definition at line 373 of file Switcher.php.
| getSwitchUrl | ( | ) |
Definition at line 385 of file Switcher.php.
| getWebsiteCollection | ( | ) |
Definition at line 135 of file Switcher.php.
| getWebsiteId | ( | ) |
Definition at line 205 of file Switcher.php.
| getWebsites | ( | ) |
| getWebsiteVarName | ( | ) |
Definition at line 184 of file Switcher.php.
| hasDefaultOption | ( | $hasDefaultOption = null | ) |
Set/Get whether the switcher should show default option
| bool | $hasDefaultOption |
Definition at line 517 of file Switcher.php.
| hasScopeSelected | ( | ) |
Definition at line 404 of file Switcher.php.
| isShow | ( | ) |
Definition at line 495 of file Switcher.php.
| isStoreGroupSelected | ( | \Magento\Store\Model\Group | $group | ) |
| \Magento\Store\Model\Group | $group |
Definition at line 275 of file Switcher.php.
| isStoreGroupSwitchEnabled | ( | ) |
| isStoreSelected | ( | \Magento\Store\Model\Store | $store | ) |
| \Magento\Store\Model\Store | $store |
Definition at line 345 of file Switcher.php.
| isStoreSwitchEnabled | ( | ) |
| isUsingIframe | ( | ) |
| isWebsiteSelected | ( | \Magento\Store\Model\Website | $website | ) |
| \Magento\Store\Model\Website | $website |
Definition at line 197 of file Switcher.php.
| isWebsiteSwitchEnabled | ( | ) |
| setStoreGroupVarName | ( | $varName | ) |
| setStoreIds | ( | $storeIds | ) |
| setStoreVarName | ( | $varName | ) |
| setWebsiteVarName | ( | $varName | ) |
|
protected |
Definition at line 34 of file Switcher.php.
|
protected |
Definition at line 41 of file Switcher.php.
|
protected |
Definition at line 27 of file Switcher.php.
|
protected |
Definition at line 58 of file Switcher.php.
|
protected |
Definition at line 53 of file Switcher.php.
|
protected |
Definition at line 86 of file Switcher.php.
|
protected |
Definition at line 79 of file Switcher.php.
|
protected |
Definition at line 46 of file Switcher.php.
|
protected |
Definition at line 65 of file Switcher.php.
|
protected |
Definition at line 72 of file Switcher.php.
| const HINT_URL = 'http://docs.magento.com/m2/ce/user_guide/configuration/scope.html' |
URL for store switcher hint
Definition at line 20 of file Switcher.php.