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


PHP Module::getCacheId方法代码示例

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


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

示例1: getCacheId

 protected function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockhomecategories';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
开发者ID:Ismail06,项目名称:blockhomecategories,代码行数:7,代码来源:blockhomecategories.php

示例2: getCacheId

 protected function getCacheId($name = null)
 {
     parent::getCacheId($name);
     $groups = implode(', ', Customer::getGroupsStatic((int) $this->context->customer->id));
     $id_product = (int) Tools::getValue('id_product', 0);
     $id_category = (int) Tools::getValue('id_category', 0);
     $id_lang = (int) $this->context->language->id;
     return 'blockcategories|' . (int) Tools::usingSecureMode() . '|' . $this->context->shop->id . '|' . $groups . '|' . $id_lang . '|' . $id_product . '|' . $id_category;
 }
开发者ID:toufikadfab,项目名称:PrestaShop-1.5,代码行数:9,代码来源:blockcategories.php

示例3: getCacheId

 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId();
     if ($name !== null) {
         $cache_id .= '|' . $name;
     }
     if ((Tools::getValue('id_product') || Tools::getValue('id_category')) && isset($this->context->cookie->last_visited_category) && $this->context->cookie->last_visited_category) {
         $cache_id .= '|' . (int) $this->context->cookie->last_visited_category;
     }
     return $cache_id . '|' . implode('-', Customer::getGroupsStatic($this->context->customer->id));
 }
开发者ID:vadia007,项目名称:paintings,代码行数:11,代码来源:blockcategories.php

示例4: getCacheId

 protected function getCacheId($name = null)
 {
     parent::getCacheId($name);
     $page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';
     return 'blocktopmenu|' . (int) Tools::usingSecureMode() . '|' . $page_name . '|' . (int) $this->context->shop->id . '|' . implode(', ', $this->user_groups) . '|' . (int) $this->context->language->id . '|' . (int) Tools::getValue('id_category') . '|' . (int) Tools::getValue('id_manufacturer') . '|' . (int) Tools::getValue('id_supplier') . '|' . (int) Tools::getValue('id_cms') . '|' . (int) Tools::getValue('id_product');
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:6,代码来源:blocktopmenu.php

示例5: getCacheId

 protected function getCacheId()
 {
     if ($name === NULL) {
         $name = 'topfootercms';
         return parent::getCacheId($name . '|' . date('Ymd'));
     }
 }
开发者ID:Chantouch,项目名称:topfootercms,代码行数:7,代码来源:topfootercms.php

示例6: getCacheId

 public function getCacheId($action)
 {
     return parent::getCacheId($action);
 }
开发者ID:demental,项目名称:m,代码行数:4,代码来源:default.php

示例7: getCacheId

 function getCacheId($name = null)
 {
     return parent::getCacheId('flexiblebrand|' . $name);
 }
开发者ID:habypk,项目名称:zocart,代码行数:4,代码来源:flexiblebrands.php

示例8: getCacheId

 public function getCacheId($name = null)
 {
     if ($name === null && isset($this->context->smarty->tpl_vars['page_name'])) {
         return parent::getCacheId($this->context->smarty->tpl_vars['page_name']->value);
     }
     return parent::getCacheId($name);
 }
开发者ID:vuduykhuong1412,项目名称:GitHub,代码行数:7,代码来源:ptsbttestimonials.php

示例9: getCacheId

 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId();
     if ($name !== null) {
         $cache_id .= '|' . $name;
     }
     return $cache_id . '|' . implode('-', Customer::getGroupsStatic($this->context->customer->id));
 }
开发者ID:gks-stage,项目名称:prestashop,代码行数:8,代码来源:blockcategories.php

示例10: getCacheId

 public function getCacheId($name = null)
 {
     if ($name === null) {
         $name = 'blockoffers';
     }
     return parent::getCacheId($name . '|' . date('Ymd'));
 }
开发者ID:paolobattistella,项目名称:aphro,代码行数:7,代码来源:blockoffers.php

示例11: getCacheId

 protected function getCacheId($name = null)
 {
     $cache_id = parent::getCacheId($name);
     return $cache_id . '_' . (int) Tools::usingSecureMode();
 }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:5,代码来源:blocksearch.php

示例12: getCacheId

 protected function getCacheId($name = null)
 {
     $name = ($name ? $name . '|' : '') . implode('-', Customer::getGroupsStatic($this->context->customer->id));
     return parent::getCacheId($name);
 }
开发者ID:pacxs,项目名称:pacxscom,代码行数:5,代码来源:leoblog.php

示例13: getCacheId

 public function getCacheId($id_product = null)
 {
     return parent::getCacheId() . '|' . (int) $id_product;
 }
开发者ID:prestashop,项目名称:productcomments,代码行数:4,代码来源:productcomments.php

示例14: getCacheId

 protected function getCacheId($name = null)
 {
     return parent::getCacheId('blockcms|' . $name);
 }
开发者ID:pacxs,项目名称:pacxscom,代码行数:4,代码来源:blockcms.php

示例15: getCacheId

 protected function getCacheId($name = null)
 {
     return parent::getCacheId('blocknewproducts|' . date('Ymd'));
 }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:4,代码来源:blocknewproducts.php


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