本文整理匯總了PHP中Magento\Store\Model\Store::load方法的典型用法代碼示例。如果您正苦於以下問題:PHP Store::load方法的具體用法?PHP Store::load怎麽用?PHP Store::load使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Magento\Store\Model\Store
的用法示例。
在下文中一共展示了Store::load方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testGetCurrentUrl
public function testGetCurrentUrl()
{
$this->model->load('admin');
$this->model->expects($this->any())->method('getUrl')->will($this->returnValue('http://localhost/index.php'));
$this->assertStringEndsWith('default', $this->model->getCurrentUrl());
$this->assertStringEndsNotWith('default', $this->model->getCurrentUrl(false));
}
示例2: load
/**
* {@inheritdoc}
*/
public function load($key, $field = null)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'load');
if (!$pluginInfo) {
return parent::load($key, $field);
} else {
return $this->___callPlugins('load', func_get_args(), $pluginInfo);
}
}
示例3: __construct
/**
* @param string $chunkId
* @param string $storeId
* @param string $processId
* @param \Magento\Framework\App\Console\Response $response
*/
public function __construct($chunkId, $storeId, $processId, \Celebros\Celexport\Helper\Export $helper, \Magento\Store\Model\Store $store, \Celebros\Celexport\Model\Cache $cache, \Magento\Framework\App\State $state, \Magento\Framework\ObjectManagerInterface $objectManager)
{
$this->_chunkId = $chunkId;
$this->_storeId = $storeId;
$this->_store = $store->load($this->_storeId);
$this->_cache = $cache;
$this->_processId = $processId;
$this->_state = $state;
$this->_objectManager = $objectManager;
$this->helper = $helper;
}