CMS  Version 3.9
text_translation_form.inc File Reference

Go to the source code of this file.

Variables

 $text_translation_id = checkNumeric($_GET["text_translation_id"])
 
 $text_id = checkNumeric($_GET["text_id"])
 
 $menu_item = "Text Lookup"
 
 $translation = new TextTranslation()
 
if($text_translation_id) else
 
 $text = new TextLookup($text_id)
 
 $title = "Text Translation form for " . $text->code
 
 $form = new AutoForm($translation)
 
 $redirect = "/admin/text_translations?text_id={$text_id}"
 
 $languageSelect = new SelectFieldRenderer($form, "language", "Language", $text->getTranslationOptions())
 
 $textSelect = new RelatedItemSelectFieldRenderer($form, "text_id", "Text", TextLookup, "WHERE text_id={$text_id}", "text", "text_id")
 
 $tabs = TextLookupManager::getTabs($text_id)
 
$tabs page = "/admin/text_translations"
 
if($method=="POST") $script = $form->writeScript()
 

Variable Documentation

◆ $form

$form = new AutoForm($translation)

Definition at line 72 of file text_translation_form.inc.

◆ $languageSelect

$languageSelect = new SelectFieldRenderer($form, "language", "Language", $text->getTranslationOptions())

Definition at line 77 of file text_translation_form.inc.

◆ $menu_item

$menu_item = "Text Lookup"

Definition at line 54 of file text_translation_form.inc.

◆ $redirect

$redirect = "/admin/text_translations?text_id={$text_id}"

Definition at line 74 of file text_translation_form.inc.

◆ $script

if ( $method=="POST") $script = $form->writeScript()

Definition at line 93 of file text_translation_form.inc.

◆ $tabs

$tabs = TextLookupManager::getTabs($text_id)

Definition at line 82 of file text_translation_form.inc.

◆ $text

$text = new TextLookup($text_id)

Definition at line 67 of file text_translation_form.inc.

◆ $text_id

$text_id = checkNumeric($_GET["text_id"])

Definition at line 49 of file text_translation_form.inc.

◆ $text_translation_id

$text_translation_id = checkNumeric($_GET["text_translation_id"])

Definition at line 48 of file text_translation_form.inc.

◆ $textSelect

$textSelect = new RelatedItemSelectFieldRenderer($form, "text_id", "Text", TextLookup, "WHERE text_id={$text_id}", "text", "text_id")

Definition at line 78 of file text_translation_form.inc.

◆ $title

$title = "Text Translation form for " . $text->code

Definition at line 70 of file text_translation_form.inc.

◆ $translation

$translation = new TextTranslation()

Definition at line 56 of file text_translation_form.inc.

◆ else

if ( $text_translation_id) else
Initial value:

Definition at line 64 of file text_translation_form.inc.

◆ page

$tabs page = "/admin/text_translations"

Definition at line 83 of file text_translation_form.inc.