You are here

class i18n_string_textgroup_cached_logged in Internationalization 7

Hierarchy

Expanded class hierarchy of i18n_string_textgroup_cached_logged

1 string reference to 'i18n_string_textgroup_cached_logged'
i18n_test_i18n_string_info in tests/i18n_test.module
Implements hook_i18n_string_info()

File

tests/i18n_test.module, line 94
Helper module for testing i18n

View source
class i18n_string_textgroup_cached_logged extends i18n_string_textgroup_cached {
  public static function load_translation($i18nstring, $langcode) {
    $strings = variable_get('i18n_loaded_translations', array());
    $strings[$i18nstring
      ->get_name()] = true;
    variable_set('i18n_loaded_translations', $strings);
    parent::load_translation($i18nstring, $langcode);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
i18n_string_textgroup_cached::$caching_time public property Defines the timeout for the persistent caching.
i18n_string_textgroup_cached::cache_get protected function Get translation from cache. Overrides i18n_string_textgroup_default::cache_get
i18n_string_textgroup_cached::cache_reset public function Reset cache, needed for tests. Overrides i18n_string_textgroup_default::cache_reset
i18n_string_textgroup_cached::multiple_cache_get protected function Get strings from multiple cache. Overrides i18n_string_textgroup_default::multiple_cache_get
i18n_string_textgroup_cached::string_remove public function Remove string object. Overrides i18n_string_textgroup_default::string_remove
i18n_string_textgroup_cached::string_update public function Update / create / remove string. Overrides i18n_string_textgroup_default::string_update
i18n_string_textgroup_cached::__construct public function Extends the existing constructor with a cache handling. Overrides i18n_string_textgroup_default::__construct
i18n_string_textgroup_cached::__destruct public function Class destructor.
i18n_string_textgroup_cached_logged::load_translation public static function Load translation from db Overrides i18n_string_textgroup_default::load_translation
i18n_string_textgroup_default::$cache_multiple protected property
i18n_string_textgroup_default::$debug public property
i18n_string_textgroup_default::$strings public property
i18n_string_textgroup_default::$textgroup public property
i18n_string_textgroup_default::build_string public function Build string object
i18n_string_textgroup_default::cache_set protected function Set string object into cache
i18n_string_textgroup_default::context_remove public function Remove source and translations for user defined string.
i18n_string_textgroup_default::context_translate public function Translate source string
i18n_string_textgroup_default::context_update public function Update / create translation source for user defined strings.
i18n_string_textgroup_default::load_source public static function Load string source from db
i18n_string_textgroup_default::load_strings public function Load multiple strings.
i18n_string_textgroup_default::multiple_cache_set protected function Set multiple cache.
i18n_string_textgroup_default::multiple_combine protected static function Build combinations of an array of arrays respecting keys.
i18n_string_textgroup_default::multiple_translate public function Translate array of source strings
i18n_string_textgroup_default::multiple_translation_build protected function Get multiple translations with search conditions.
i18n_string_textgroup_default::multiple_translation_load protected function Load multiple translations from db
i18n_string_textgroup_default::multiple_translation_search public function Search multiple translations with key combinations.
i18n_string_textgroup_default::save_source protected static function Save source string (create / update)
i18n_string_textgroup_default::save_string protected function Save / update string object
i18n_string_textgroup_default::save_translation protected function Save translation to the db
i18n_string_textgroup_default::string_add protected function Add source string to the locale tables for translation.
i18n_string_textgroup_default::string_check protected static function Check if string is ok for translation
i18n_string_textgroup_default::string_filter protected static function Filter array of strings
i18n_string_textgroup_default::string_query protected static function Build query for i18n_string table
i18n_string_textgroup_default::string_translate protected function Translate string object
i18n_string_textgroup_default::update_check public function Recheck strings after update
i18n_string_textgroup_default::update_translation function Update string translation, only if source exists.