本文整理匯總了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;
}