CMS  Version 3.9
text_lookup_form.inc File Reference

Go to the source code of this file.

Functions

 onDeleteCascade (&$text)
 

Variables

 $text_id = checkNumeric($_GET["text_id"])
 
 $menu_item = "Text Lookup"
 
 $text = new TextLookup()
 
if($text_id) else
 
$text enabled = true
 
 $redirect = "/admin/text_lookup_list"
 
 $form = new AutoForm($text)
 
 $classes = ComponentManager::fireEvent("EnumerateDataItemClasses", $classes)
 
 $classSelect = new SelectFieldRenderer($form, "class_name", "Class Name", $classNameList)
 
$form allowDelete = true
 
$form onDelete = onDeleteCascade
 
 $tabs = TextLookupManager::getTabs($text_id)
 
if($method=="POST") $script = $form->writeScript()
 

Function Documentation

◆ onDeleteCascade()

onDeleteCascade ( $text)

Definition at line 111 of file text_lookup_form.inc.

112 {
114 }
static deleteText($text)

Variable Documentation

◆ $classes

$classes = ComponentManager::fireEvent("EnumerateDataItemClasses", $classes)

Definition at line 73 of file text_lookup_form.inc.

◆ $classSelect

$classSelect = new SelectFieldRenderer($form, "class_name", "Class Name", $classNameList)

Definition at line 77 of file text_lookup_form.inc.

◆ $form

$form = new AutoForm($text)

Definition at line 67 of file text_lookup_form.inc.

◆ $menu_item

$menu_item = "Text Lookup"

Definition at line 50 of file text_lookup_form.inc.

◆ $redirect

$redirect = "/admin/text_lookup_list"

Definition at line 65 of file text_lookup_form.inc.

◆ $script

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

Definition at line 102 of file text_lookup_form.inc.

◆ $tabs

$tabs = TextLookupManager::getTabs($text_id)

Definition at line 92 of file text_lookup_form.inc.

◆ $text

$text = new TextLookup()

Definition at line 52 of file text_lookup_form.inc.

◆ $text_id

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

Definition at line 48 of file text_lookup_form.inc.

◆ allowDelete

$form allowDelete = true

Definition at line 81 of file text_lookup_form.inc.

◆ else

if ( $text_id) else
Initial value:
{
$text->category = "General"

Definition at line 58 of file text_lookup_form.inc.

◆ enabled

$text enabled = true

Definition at line 61 of file text_lookup_form.inc.

◆ onDelete

$form onDelete = onDeleteCascade

Definition at line 82 of file text_lookup_form.inc.