public function i18n_translation_set::__construct in Internationalization 7
Constructor from object/array
File
- i18n_translation/
i18n_translation.inc, line 24 - Internationalization (i18n) module - Translation set
Class
- i18n_translation_set
- @file Internationalization (i18n) module - Translation set
Code
public function __construct($translation = NULL) {
if ($translation) {
foreach ((array) $translation as $key => $value) {
$this->{$key} = $value;
}
}
}