CMS  Version 3.9
text_lookup_list.inc File Reference

Go to the source code of this file.

Functions

 textLookupPlainText ($textLookup)
 

Variables

 $menu_item = "Text Lookup"
 
 $textLookup = new TextLookup()
 
$textLookup filter = new InclusionFilter("text_lookup_id", "category")
 
 $filterForm = new FilterForm($textLookup)
 
 $categoryFilter = new FilterFieldRenderer($filterForm, "category", "Filter By Category")
 
 $constraint = $filterForm->getConstraint()
 
 $texts = Query::create(TextLookup, "{$constraint} ORDER BY code")->execute()
 
 $table = new DataListView($texts, "textLookup")
 
$table sortable = true
 
$table pageSize = 10
 
$table emptyMessage = "No text lookups have been defined."
 
 $script = $table->writeScript()
 

Function Documentation

◆ textLookupPlainText()

textLookupPlainText (   $textLookup)

Definition at line 70 of file text_lookup_list.inc.

71 {
72  return $textLookup->text;
73 }
$textLookup

Variable Documentation

◆ $categoryFilter

$categoryFilter = new FilterFieldRenderer($filterForm, "category", "Filter By Category")

Definition at line 44 of file text_lookup_list.inc.

◆ $constraint

$constraint = $filterForm->getConstraint()

Definition at line 48 of file text_lookup_list.inc.

◆ $filterForm

$filterForm = new FilterForm($textLookup)

Definition at line 43 of file text_lookup_list.inc.

◆ $menu_item

$menu_item = "Text Lookup"

Definition at line 38 of file text_lookup_list.inc.

◆ $script

$script = $table->writeScript()

Definition at line 64 of file text_lookup_list.inc.

◆ $table

$table = new DataListView($texts, "textLookup")

Definition at line 51 of file text_lookup_list.inc.

◆ $textLookup

$textLookup = new TextLookup()

Definition at line 40 of file text_lookup_list.inc.

◆ $texts

$texts = Query::create(TextLookup, "{$constraint} ORDER BY code")->execute()

Definition at line 49 of file text_lookup_list.inc.

◆ emptyMessage

$table emptyMessage = "No text lookups have been defined."

Definition at line 62 of file text_lookup_list.inc.

◆ filter

$table filter = new InclusionFilter("text_lookup_id", "category")

Definition at line 41 of file text_lookup_list.inc.

◆ pageSize

$table pageSize = 10

Definition at line 61 of file text_lookup_list.inc.

◆ sortable

$table sortable = true

Definition at line 59 of file text_lookup_list.inc.