本文整理汇总了PHP中Mage_Core_Model_Store::getStoreId方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Store::getStoreId方法的具体用法?PHP Mage_Core_Model_Store::getStoreId怎么用?PHP Mage_Core_Model_Store::getStoreId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Store
的用法示例。
在下文中一共展示了Mage_Core_Model_Store::getStoreId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: executeByStore
/**
* Create inherited child configurations for a Store
*
* @param Mage_Core_Model_Store $store
*
* @return Payone_Core_Model_Domain_Config_PaymentMethod[]
*/
public function executeByStore(Mage_Core_Model_Store $store)
{
$scope = 'stores';
$scopeId = $store->getStoreId();
$parentId = $store->getWebsiteId();
$this->savePaymentConfigs($scope, $scopeId, $parentId);
}
示例2: prepareUrl
/**
* Prepare url to insert into invitation email
*
* @param Mage_Customer_Model_Customer $customer
* @param string $emailAddress
* @param Mage_Core_Model_Store $store
*
* @return string
*/
public function prepareUrl($customer, $emailAddress, $store)
{
$this->getResource()->loadByCustomerAndEmail($this, $customer, $emailAddress);
$preparedUrl = Mage::getModel('core/url')->setStore($store->getStoreId())->getUrl('points/invitation/createAccount/', array('invitation' => Mage::helper('core')->urlEncode($this->getProtectionCode()), '_store_to_url' => true));
// $currentUrl = Mage::helper('core/url')->getCurrentUrl();
$preparedUrl = $preparedUrl . "?productid" . $_SESSION['current_product_id'];
return $preparedUrl;
}
示例3: _getWrapped
/**
* Wraps post, customer, store data into Varien_Object
*
* @param array $postData
* @param Mage_Customer_Model_Customer $customer
* @param Mage_Core_Model_Store $store
*
* @return Varien_Object
*/
private function _getWrapped($postData, $customer, $store)
{
$objToReturn = new Varien_Object();
$storeId = $store->getStoreId();
$message = isset($postData['message']) ? htmlspecialchars($postData['message']) : '';
$emailAddresses = $postData['email'];
foreach ($emailAddresses as $key => $emailAddress) {
if (empty($emailAddress) || !Zend_Validate::is($emailAddress, 'EmailAddress')) {
unset($emailAddresses[$key]);
}
}
$objToReturn->setData(array('emails' => $emailAddresses, 'customer_id' => $customer->getEntityId(), 'message' => $message, 'store_id' => $storeId));
return $objToReturn;
}
示例4: _buildStore
/**
* Builds a record for a given store
*
* @param Mage_Core_Model_Store $store
* @return array
*/
protected function _buildStore(Mage_Core_Model_Store $store)
{
$locale = preg_split('/_/', $store->getConfig('general/locale/code'));
return array('webStoreName' => $store->getName(), 'webStoreId' => $store->getStoreId(), 'language' => $locale[1], 'currencyCode' => $store->getCurrentCurrencyCode(), 'url' => $store->getUrl());
}