CMS  Version 3.9
scroll_part_form.inc File Reference

Go to the source code of this file.

Variables

 $menu_item = "Scrolls"
 
 $scroll_id = checkNumeric($_GET["scroll_id"])
 
 $scroll_part_id = checkNumeric($_GET["scroll_part_id"])
 
 $content_type = checkIdentifier($_GET["content_type"])
 
if($scroll_part_id) else
 
$part scroll_id = $scroll_id
 
$part content_type = $content_type
 
 $form = new AutoForm($part)
 
$form allowDelete = true
 
 $scrollSelect = $form->related(Scroll, "", "{title}", "scroll_id", "Scroll")
 
$form onInsertPreProcess
 
 $tabs = ScrollManager::scrollTabs($part->scroll_id)
 
$tabs page = "scroll_parts"
 
 $codeSelect = new CodeFileSelectFieldRenderer($form, "php_code_file", "PHP Code File", "modules")
 
if($method=="POST") $script = $form->writeScript()
 

Variable Documentation

◆ $codeSelect

$codeSelect = new CodeFileSelectFieldRenderer($form, "php_code_file", "PHP Code File", "modules")

Definition at line 61 of file scroll_part_form.inc.

◆ $content_type

$content_type = checkIdentifier($_GET["content_type"])

Definition at line 8 of file scroll_part_form.inc.

◆ $form

$form = new AutoForm($part)

Definition at line 35 of file scroll_part_form.inc.

◆ $menu_item

$menu_item = "Scrolls"

Definition at line 4 of file scroll_part_form.inc.

◆ $script

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

Definition at line 72 of file scroll_part_form.inc.

◆ $scroll_id

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

Definition at line 6 of file scroll_part_form.inc.

◆ $scroll_part_id

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

Definition at line 7 of file scroll_part_form.inc.

◆ $scrollSelect

$scrollSelect = $form->related(Scroll, "", "{title}", "scroll_id", "Scroll")

Definition at line 38 of file scroll_part_form.inc.

◆ $tabs

Definition at line 51 of file scroll_part_form.inc.

◆ allowDelete

$form allowDelete = true

Definition at line 36 of file scroll_part_form.inc.

◆ content_type

$part content_type = $content_type

Definition at line 32 of file scroll_part_form.inc.

◆ else

if ( $part->content_type=="HTML") else
Initial value:
{
if (!$scroll_id)
{
throw new FakoliException("Scroll Mismatch");
}
if ($content_type != 'HTML' && $content_type != 'Code')
{
throw new Exception("Invalid Content Type");
}
$part = new ScrollPart()
FakoliException is the base exception class for all Fakoli errors.
Definition: core.inc:53
$content_type
$scroll_id

Definition at line 18 of file scroll_part_form.inc.

◆ onInsertPreProcess

$form onInsertPreProcess
Initial value:
= function($form)
{
$form->data->sort_order = Query::create(ScrollPart, "WHERE scroll_id=:s")
->bind(":s", $form->data->scroll_id)
->executeValue("MAX(sort_order) + 1");
}

Definition at line 44 of file scroll_part_form.inc.

◆ page

$tabs page = "scroll_parts"

Definition at line 52 of file scroll_part_form.inc.

◆ scroll_id

$part scroll_id = $scroll_id

Definition at line 31 of file scroll_part_form.inc.