本文整理汇总了PHP中eZContentCacheManager::clearContentCacheIfNeededBySectionID方法的典型用法代码示例。如果您正苦于以下问题:PHP eZContentCacheManager::clearContentCacheIfNeededBySectionID方法的具体用法?PHP eZContentCacheManager::clearContentCacheIfNeededBySectionID怎么用?PHP eZContentCacheManager::clearContentCacheIfNeededBySectionID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZContentCacheManager
的用法示例。
在下文中一共展示了eZContentCacheManager::clearContentCacheIfNeededBySectionID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (preg_match('/(^[^A-Za-z])|\\W/', $sectionIdentifier)) {
$errorMessage = ezpI18n::tr('design/admin/section/edit', 'Identifier should consist of letters, numbers or \'_\' with letter prefix.');
} else {
$conditions = array('identifier' => $sectionIdentifier, 'id' => array('!=', $SectionID));
$existingSection = eZSection::fetchFilteredList($conditions);
if (count($existingSection) > 0) {
$errorMessage = ezpI18n::tr('design/admin/section/edit', 'The identifier has been used in another section.');
}
}
}
$section->setAttribute('identifier', $sectionIdentifier);
$section->setAttribute('navigation_part_identifier', $http->postVariable('NavigationPartIdentifier'));
if ($http->hasPostVariable('Locale')) {
$section->setAttribute('locale', $http->postVariable('Locale'));
}
if ($errorMessage === '') {
$section->store();
eZContentCacheManager::clearContentCacheIfNeededBySectionID($section->attribute('id'));
$Module->redirectTo($Module->functionURI('list'));
return;
} else {
$tpl->setVariable('error_message', $errorMessage);
}
}
if ($http->hasPostVariable('CancelButton')) {
$Module->redirectTo($Module->functionURI('list'));
}
$tpl->setVariable("section", $section);
$Result = array();
$Result['content'] = $tpl->fetch("design:section/edit.tpl");
$Result['path'] = array(array('url' => 'section/list', 'text' => ezpI18n::tr('kernel/section', 'Sections')), array('url' => false, 'text' => $section instanceof eZSection ? $section->attribute('name') : $section['name']));