You are here

public function i18n_translation_set::get_objects in Internationalization 7

Get translations as i18n objects, indexed by language

5 calls to i18n_translation_set::get_objects()
i18n_translation_set::get_links in i18n_translation/i18n_translation.inc
Get items as renderable links
i18n_translation_set::get_title in i18n_translation/i18n_translation.inc
Get title for this set
i18n_translation_set::get_translations in i18n_translation/i18n_translation.inc
Get translations, indexed by language
i18n_translation_set::get_translations_keys in i18n_translation/i18n_translation.inc
Get translations keys, indexed by language
i18n_translation_set::item_list in i18n_translation/i18n_translation.inc
Get item list

File

i18n_translation/i18n_translation.inc, line 199
Internationalization (i18n) module - Translation set

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function get_objects() {
  if (!isset($this->translations)) {
    $this->translations = array();

    // Disable selection query altering, just in case
    $previous = i18n_select(FALSE);
    $this
      ->add_translations($this
      ->load_translations());
    i18n_select($previous);
  }
  return $this->translations;
}