本文整理匯總了PHP中Magento\Store\Model\Store::getName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Store::getName方法的具體用法?PHP Store::getName怎麽用?PHP Store::getName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Magento\Store\Model\Store
的用法示例。
在下文中一共展示了Store::getName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getName
/**
* {@inheritdoc}
*/
public function getName()
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'getName');
if (!$pluginInfo) {
return parent::getName();
} else {
return $this->___callPlugins('getName', func_get_args(), $pluginInfo);
}
}
示例2: build
/**
* @param Store $store
* @return \NostoAccount
*/
public function build(Store $store)
{
$metaData = new \NostoAccount();
try {
$metaData->setTitle(implode(' - ', [$store->getWebsite()->getName(), $store->getGroup()->getName(), $store->getName()]));
$metaData->setName(substr(sha1(rand()), 0, 8));
$metaData->setFrontPageUrl(\NostoHttpRequest::replaceQueryParamInUrl('___store', $store->getCode(), $store->getBaseUrl(UrlInterface::URL_TYPE_WEB)));
$metaData->setCurrency(new \NostoCurrencyCode($store->getBaseCurrencyCode()));
$lang = substr($store->getConfig('general/locale/code'), 0, 2);
$metaData->setLanguage(new \NostoLanguageCode($lang));
$lang = substr($this->_localeResolver->getLocale(), 0, 2);
$metaData->setOwnerLanguage(new \NostoLanguageCode($lang));
$owner = $this->_accountOwnerMetaBuilder->build();
$metaData->setOwner($owner);
$billing = $this->_accountBillingMetaBuilder->build($store);
$metaData->setBilling($billing);
} catch (\NostoException $e) {
$this->_logger->error($e, ['exception' => $e]);
}
return $metaData;
}
示例3: build
/**
* @param Store $store
* @return \NostoIframe
*/
public function build(Store $store)
{
$metaData = new \NostoIframe();
try {
$metaData->setUniqueId($this->_dataHelper->getInstallationId());
$lang = substr($this->_localeResolver->getLocale(), 0, 2);
$metaData->setLanguage(new \NostoLanguageCode($lang));
$lang = substr($store->getConfig('general/locale/code'), 0, 2);
$metaData->setShopLanguage(new \NostoLanguageCode($lang));
$metaData->setShopName($store->getName());
$metaData->setUniqueId($this->_dataHelper->getInstallationId());
$metaData->setVersionPlatform($this->_dataHelper->getPlatformVersion());
$metaData->setVersionModule($this->_dataHelper->getModuleVersion());
$metaData->setPreviewUrlProduct($this->_urlHelper->getPreviewUrlProduct($store));
$metaData->setPreviewUrlCategory($this->_urlHelper->getPreviewUrlCategory($store));
$metaData->setPreviewUrlSearch($this->_urlHelper->getPreviewUrlSearch($store));
$metaData->setPreviewUrlCart($this->_urlHelper->getPreviewUrlCart($store));
$metaData->setPreviewUrlFront($this->_urlHelper->getPreviewUrlFront($store));
} catch (\NostoException $e) {
$this->_logger->error($e, ['exception' => $e]);
}
return $metaData;
}