当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Core_Model_Store::getStoreId方法代码示例

本文整理汇总了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);
 }
开发者ID:kirchbergerknorr,项目名称:payone-magento,代码行数:14,代码来源:Create.php

示例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;
 }
开发者ID:HPTTeam,项目名称:hackathon,代码行数:17,代码来源:Invitation.php

示例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;
 }
开发者ID:monarcmoso,项目名称:beta2,代码行数:23,代码来源:InvitationController.php

示例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());
 }
开发者ID:ridhoq,项目名称:mxpi-twitter,代码行数:11,代码来源:Inbound.php


注:本文中的Mage_Core_Model_Store::getStoreId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。