CMS  Version 3.9
tool_hint_form.inc File Reference

Go to the source code of this file.

Variables

 $hint_id = checkNumeric($_GET["hint_id"])
 
 $menu_item = "Tool Hints"
 
 $hint = new ToolHint()
 
if($hint_id) $redirect = "/admin/tool_hints"
 
 $form = new AutoForm($hint)
 
$form allowDelete = true
 
 $roleList = new CheckListFieldRenderer($form, "read_access", "Read Access", SiteRole::getRolesArray())
 
if($hint_id) else
 
if($method=="POST") $script = $form->writeScript()
 

Variable Documentation

◆ $form

$form = new AutoForm($hint)

Definition at line 60 of file tool_hint_form.inc.

◆ $hint

$hint = new ToolHint()

Definition at line 51 of file tool_hint_form.inc.

◆ $hint_id

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

Definition at line 47 of file tool_hint_form.inc.

◆ $menu_item

$menu_item = "Tool Hints"

Definition at line 49 of file tool_hint_form.inc.

◆ $redirect

if ( $hint_id) $redirect = "/admin/tool_hints"

Definition at line 58 of file tool_hint_form.inc.

◆ $roleList

$roleList = new CheckListFieldRenderer($form, "read_access", "Read Access", SiteRole::getRolesArray())

Definition at line 67 of file tool_hint_form.inc.

◆ $script

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

Definition at line 88 of file tool_hint_form.inc.

◆ allowDelete

$form allowDelete = true

Definition at line 65 of file tool_hint_form.inc.

◆ else

if ( $hint_id) else
Initial value:
{
$form->annotate("code", "Please provide the code as all lowercase letters and link words with an underscore (e.g., my_code)")

Definition at line 73 of file tool_hint_form.inc.