You are here

public function i18n_string_object::__construct in Internationalization 7

Class constructor

File

i18n_string/i18n_string.inc, line 38
API for internationalization strings

Class

i18n_string_object
String object that contains source and translations.

Code

public function __construct($data = NULL) {
  if ($data) {
    $this
      ->set_properties($data);
  }

  // Attempt to re-build the  data from the persistent cache.
  $this
    ->rebuild_from_cache($data);
}