本文整理汇总了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'));
}
示例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;
}
示例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));
}
示例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');
}
示例5: getCacheId
protected function getCacheId()
{
if ($name === NULL) {
$name = 'topfootercms';
return parent::getCacheId($name . '|' . date('Ymd'));
}
}
示例6: getCacheId
public function getCacheId($action)
{
return parent::getCacheId($action);
}
示例7: getCacheId
function getCacheId($name = null)
{
return parent::getCacheId('flexiblebrand|' . $name);
}
示例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);
}
示例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));
}
示例10: getCacheId
public function getCacheId($name = null)
{
if ($name === null) {
$name = 'blockoffers';
}
return parent::getCacheId($name . '|' . date('Ymd'));
}
示例11: getCacheId
protected function getCacheId($name = null)
{
$cache_id = parent::getCacheId($name);
return $cache_id . '_' . (int) Tools::usingSecureMode();
}
示例12: getCacheId
protected function getCacheId($name = null)
{
$name = ($name ? $name . '|' : '') . implode('-', Customer::getGroupsStatic($this->context->customer->id));
return parent::getCacheId($name);
}
示例13: getCacheId
public function getCacheId($id_product = null)
{
return parent::getCacheId() . '|' . (int) $id_product;
}
示例14: getCacheId
protected function getCacheId($name = null)
{
return parent::getCacheId('blockcms|' . $name);
}
示例15: getCacheId
protected function getCacheId($name = null)
{
return parent::getCacheId('blocknewproducts|' . date('Ymd'));
}