public function i18n_string_textgroup_default::__construct in Internationalization 7
Class constructor.
There are to hidden variables to produce debugging information:
- 'i18n_string_debug', generic for all text groups.
- 'i18n_string_debug_TEXTGROUP', enable debug only for TEXTGROUP.
1 call to i18n_string_textgroup_default::__construct()
- i18n_string_textgroup_cached::__construct in i18n_string/
i18n_string.inc - Extends the existing constructor with a cache handling.
1 method overrides i18n_string_textgroup_default::__construct()
- i18n_string_textgroup_cached::__construct in i18n_string/
i18n_string.inc - Extends the existing constructor with a cache handling.
File
- i18n_string/
i18n_string.inc, line 340 - API for internationalization strings
Class
- i18n_string_textgroup_default
- Textgroup handler for i18n_string API
Code
public function __construct($textgroup) {
$this->textgroup = $textgroup;
$this->debug = variable_get('i18n_string_debug', FALSE) || variable_get('i18n_string_debug_' . $textgroup, FALSE);
}