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


PHP Mage_Core_Block_Template::getCacheKeyInfo方法代码示例

本文整理汇总了PHP中Mage_Core_Block_Template::getCacheKeyInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Block_Template::getCacheKeyInfo方法的具体用法?PHP Mage_Core_Block_Template::getCacheKeyInfo怎么用?PHP Mage_Core_Block_Template::getCacheKeyInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Core_Block_Template的用法示例。


在下文中一共展示了Mage_Core_Block_Template::getCacheKeyInfo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getCacheKeyInfo

 /**
  * Get cache key informative items
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     if (null === $this->_cacheKeyInfo) {
         $this->_cacheKeyInfo = parent::getCacheKeyInfo() + array('crumbs' => base64_encode(serialize($this->_crumbs)), 'name' => $this->getNameInLayout());
     }
     return $this->_cacheKeyInfo;
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:12,代码来源:Breadcrumbs.php

示例2: getCacheKeyInfo

 public function getCacheKeyInfo()
 {
     $info = parent::getCacheKeyInfo();
     if (Mage::registry('product')) {
         $info['product_id'] = Mage::registry('product')->getId();
     }
     return $info;
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:8,代码来源:Multipledeals.php

示例3: getCacheKeyInfo

 /**
  * Get cache key informative items
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $info = parent::getCacheKeyInfo();
     if ($id = $this->getUniqueId()) {
         $info['unique_id'] = (string) $id;
     }
     return $info;
 }
开发者ID:RapidCampaign,项目名称:rapid-magento-extension,代码行数:13,代码来源:Promotion.php

示例4: getCacheKeyInfo

 public function getCacheKeyInfo()
 {
     $id = $this->getData('slideshow_id');
     if ($id) {
         $result = array('cdz_revslideshow', Mage::app()->getStore()->getId(), (int) Mage::app()->getStore()->isCurrentlySecure(), Mage::getDesign()->getPackageName(), Mage::getDesign()->getTheme('template'), serialize($this->getData()));
     } else {
         $result = parent::getCacheKeyInfo();
     }
     return $result;
 }
开发者ID:CodazonGroup,项目名称:coda,代码行数:10,代码来源:Revslideshow.php

示例5: getCacheKeyInfo

 public function getCacheKeyInfo()
 {
     if (!($zip = Mage::registry('bloom_nations_zipcode'))) {
         $zip = $_COOKIE['bloom_nations_zipcode'];
     }
     $info = parent::getCacheKeyInfo();
     $info['zip'] = $zip;
     $info['module'] = 'catView';
     $info['category'] = Mage::registry('current_category')->getId();
     return $info;
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:11,代码来源:View.php

示例6: getCacheKeyInfo

 /**
  * Get cache key informative items
  * Provide string array key to share specific info item with FPC placeholder
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     if (is_null($this->_cacheKeyInfo)) {
         $links = array();
         if (!empty($this->_links)) {
             foreach ($this->_links as $position => $link) {
                 if ($link instanceof Varien_Object) {
                     $links[$position] = $link->getData();
                 }
             }
         }
         $this->_cacheKeyInfo = parent::getCacheKeyInfo() + array('links' => base64_encode(serialize($links)), 'name' => $this->getNameInLayout());
     }
     return $this->_cacheKeyInfo;
 }
开发者ID:hirentricore,项目名称:devmagento,代码行数:21,代码来源:Links.php

示例7: getCacheKeyInfo

 /**
  * Get cache key informative items that must be preserved in cache placeholders
  * for block to be rerendered by placeholder
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $items = array('templates' => serialize($this->_templates));
     $items = parent::getCacheKeyInfo() + $items;
     return $items;
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:12,代码来源:ActivePoll.php

示例8: getCacheKeyInfo

 /**
  * Get cache key informative items that must be preserved in cache placeholders
  * for block to be rerendered by placeholder
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $items = array('name' => $this->getNameInLayout(), 'types' => $this->getTypes(), 'display_mode' => $this->getDisplayMode(), 'rotate' => (string) $this->getRotate(), 'banner_ids' => implode(',', $this->getBannerIds()), 'unique_id' => $this->getUniqueId());
     $items = parent::getCacheKeyInfo() + $items;
     return $items;
 }
开发者ID:barneydesmond,项目名称:propitious-octo-tribble,代码行数:12,代码来源:Banner.php

示例9: getCacheKeyInfo

 /**
  * Get Key pieces for caching block content
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     if ($this->hasData('cache_key_info')) {
         return $this->getData('cache_key_info');
     }
     return parent::getCacheKeyInfo();
 }
开发者ID:albertobraschi,项目名称:Diglin_Joomla,代码行数:12,代码来源:Module.php

示例10: getCacheKeyInfo

 /**
  * Retrieve values of properties that unambiguously identify unique content
  *
  * @return array
  */
 public function getCacheKeyInfo()
 {
     $result = parent::getCacheKeyInfo();
     $blockId = $this->getBlockId();
     if ($blockId) {
         $result[] = $blockId;
     }
     return $result;
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:14,代码来源:Block.php

示例11: getCacheKeyInfo

 public function getCacheKeyInfo()
 {
     return array_merge(parent::getCacheKeyInfo(), array(Mage::getDesign()->getPackageName(), Mage::getDesign()->getTheme('template'), Mage::getSingleton('customer/session')->getCustomerGroupId(), $this->getCategoryId()));
 }
开发者ID:creatuitydevelopers,项目名称:mega-menu,代码行数:4,代码来源:Abstract.php

示例12: getCacheKeyInfo

 /**
  * {@inheritdoc}
  */
 public function getCacheKeyInfo()
 {
     $info = parent::getCacheKeyInfo();
     $blockId = $this->getBlockId();
     if ($blockId) {
         $info[] = 'CMSBLOCK_' . $blockId;
     }
     return $info;
 }
开发者ID:staywithabhi,项目名称:porto,代码行数:12,代码来源:Block.php

示例13: testGetCacheKeyInfo

 public function testGetCacheKeyInfo()
 {
     $this->assertArrayHasKey('template', $this->_block->getCacheKeyInfo());
 }
开发者ID:NatashaOlut,项目名称:Mage_Test,代码行数:4,代码来源:Template.php

示例14: getCacheKeyInfo

 public function getCacheKeyInfo()
 {
     $design = Mage::getDesign();
     return array_merge(parent::getCacheKeyInfo(), array($this->getData('uri'), $design->getTheme('layout'), $design->getTheme('locale')));
 }
开发者ID:hughwilkie,项目名称:MVentory_Productivity,代码行数:5,代码来源:Import.php

示例15: getCacheKeyInfo

 public function getCacheKeyInfo()
 {
     return array_merge(parent::getCacheKeyInfo(), array('dialog_slider'));
 }
开发者ID:AndrewFelipe,项目名称:Magento-FeedbackDialog,代码行数:4,代码来源:Dialog.php


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