Inherits DataItem.
Definition at line 211 of file text_lookup.inc.
◆ getTranslation()
static TextTranslation::getTranslation |
( |
|
$text | ) |
|
|
static |
Definition at line 259 of file text_lookup.inc.
264 $language =
$user->language;
268 if(!$language || $language ==
"English")
272 $translations = Query::create(
TextTranslation,
"WHERE text_id=:text_id AND language=:language")
273 ->bind(
":text_id",
$text->text_id,
":language", $language)
276 if(count($translations) > 0 && $translations[0]->text)
278 $text->text = $translations[0]->text;
static getValue($component, $name)
Retrieve the value of the specified Setting.
◆ TextLookup()
TextTranslation::TextLookup |
( |
| ) |
|
◆ TextTranslation()
TextTranslation::TextTranslation |
( |
| ) |
|
Definition at line 243 of file text_lookup.inc.
245 $this->primary_key =
"text_translation_id";
246 $this->table =
"text_translation";
248 $this->DataItem(func_get_args());
◆ $fields
Initial value:= array(
"text_translation_id" => Number,
"text_id" => String,
"language" => String,
"text" => HTML
)
Definition at line 213 of file text_lookup.inc.
◆ $languageOptions
TextTranslation::$languageOptions |
|
static |
Initial value:= array(
"English" => "English",
"French" => "French",
"Spanish" => "Spanish",
"German" => "German",
"Russian" => "Russian"
)
Definition at line 229 of file text_lookup.inc.
◆ $relations
TextTranslation::$relations |
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/text_lookup/datamodel/text_lookup.inc