本文整理汇总了PHP中eZContentObject::translationList方法的典型用法代码示例。如果您正苦于以下问题:PHP eZContentObject::translationList方法的具体用法?PHP eZContentObject::translationList怎么用?PHP eZContentObject::translationList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZContentObject
的用法示例。
在下文中一共展示了eZContentObject::translationList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetchTranslationList
public static function fetchTranslationList()
{
$translationList = eZContentObject::translationList();
if ($translationList === null) {
$result = array('error' => array('error_type' => 'kernel', 'error_code' => eZError::KERNEL_NOT_FOUND));
} else {
$result = array('result' => $translationList);
}
return $result;
}
示例2: loadObjectLimits
function loadObjectLimits( $package, $http, $step, &$persistentData, $tpl, &$module )
{
$ini = eZINI::instance();
$availableSiteAccesses = $ini->variable( 'SiteAccessSettings', 'RelatedSiteAccessList' );
$availableLanguages = eZContentObject::translationList();
$availableLanguageArray = array();
foreach ( $availableLanguages as $language )
{
$availableLanguageArray[] = array( 'name' => $language->attribute( 'language_name' ),
'locale' => $language->attribute( 'locale_code' ) );
}
$tpl->setVariable( 'available_site_accesses', $availableSiteAccesses );
$tpl->setVariable( 'available_languages', $availableLanguageArray );
$tpl->setVariable( 'options', $persistentData['object_options'] );
}
示例3: nonTranslationList
function nonTranslationList()
{
$translationList = eZContentObject::translationList();
if ( $translationList === null )
{
$retValue = null;
return $retValue;
}
$translations = $this->translations( false );
$nonTranslationList = array();
foreach ( $translationList as $translationItem )
{
$locale = $translationItem->attribute( 'locale_code' );
if ( !in_array( $locale, $translations ) )
$nonTranslationList[] = $translationItem;
}
return $nonTranslationList;
}