ibexa

Path

ez publish / technical manual / 3.10 / reference / modules / content / fetch functions / non_translation_list


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

non_translation_list

Summary

Fetches locales that a version of an object may be translated into.

Usage

fetch( 'content', 'non_translation_list', hash( 'object_id', id, 'version', version )

Parameters

NameTypeDescriptionRequired
object_id integer The ID number of the target object. Yes.
version integer The target version number. Yes.

Returns

An array of ezlocale objects or FALSE.

Description

This function will fetch all the locales that a specific version of a content object may be translated to. The locales which the version is already translated to will not be included. The function returns an array of ezlocale objects. It will return FALSE if there are no more alternate locales.

Examples

Example 1

{def $locales=fetch( 'content', 'non_translation_list',
                              hash( 'object_id', 42,
                                    'version',    3 ) )}
 
{foreach $locales as $locale}
    {$locale.language_name} <br />
{/foreach}

Outputs the language names of the locales that version number 3 of object number 42 can be translated to.

Balazs Halasy (06/02/2004 12:08 pm)

Balazs Halasy (29/04/2005 8:43 am)


Comments

There are no comments.