本文整理汇总了PHP中eZContentLanguage::removeLanguage方法的典型用法代码示例。如果您正苦于以下问题:PHP eZContentLanguage::removeLanguage方法的具体用法?PHP eZContentLanguage::removeLanguage怎么用?PHP eZContentLanguage::removeLanguage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZContentLanguage
的用法示例。
在下文中一共展示了eZContentLanguage::removeLanguage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
eZContentLanguage::removeLanguage( 'nno-NO' );
eZContentLanguage::removeLanguage( 'dan-DK' );
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
$GLOBALS['eZTextCodecInternalCharsetReal'] = $this->charset;
eZContentLanguage::removeLanguage($this->language->ID);
parent::tearDown();
}
示例3: array
ezpEvent::getInstance()->notify('content/translations/cache', array($translation->attribute('id')));
} else {
// The locale cannot be used so we show the edit page again.
$tpl->setVariable('is_edit', $Module->isCurrentAction('Edit'));
$Result['content'] = $tpl->fetch('design:content/translationnew.tpl');
$Result['path'] = array(array('text' => ezpI18n::tr('kernel/content', 'Translation'), 'url' => false), array('text' => 'New', 'url' => false));
return;
}
}
}
if ($Module->isCurrentAction('Remove')) {
$seletedIDList = $Module->actionParameter('SelectedTranslationList');
$db = eZDB::instance();
$db->begin();
foreach ($seletedIDList as $translationID) {
eZContentLanguage::removeLanguage($translationID);
}
$db->commit();
ezpEvent::getInstance()->notify('content/translations/cache', array($seletedIDList));
}
if ($Params['TranslationID']) {
$translation = eZContentLanguage::fetch($Params['TranslationID']);
if (!$translation) {
return $Module->handleError(eZError::KERNEL_NOT_AVAILABLE, 'kernel');
}
$tpl->setVariable('translation', $translation);
$Result['content'] = $tpl->fetch('design:content/translationview.tpl');
$Result['path'] = array(array('text' => ezpI18n::tr('kernel/content', 'Content translations'), 'url' => 'content/translations'), array('text' => $translation->attribute('name'), 'url' => false));
return;
}
$availableTranslations = eZContentLanguage::fetchList();