CMS  Version 3.9
scroll_part_dialog.inc File Reference

Go to the source code of this file.

Variables

if(!Settings::checkPermission("settings", "editor_roles")) $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, "POST", "/action/scroll/scroll_part_dialog?scroll_id={$scroll_id}&scroll_part_id={$scroll_part_id}&content_type={$content_type}")
 
$form allowDelete = true
 
$form onInsertPreProcess
 
 $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 60 of file scroll_part_dialog.inc.

◆ $content_type

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

Definition at line 11 of file scroll_part_dialog.inc.

◆ $form

$form = new AutoForm($part, "POST", "/action/scroll/scroll_part_dialog?scroll_id={$scroll_id}&scroll_part_id={$scroll_part_id}&content_type={$content_type}")

Definition at line 38 of file scroll_part_dialog.inc.

◆ $script

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

Definition at line 75 of file scroll_part_dialog.inc.

◆ $scroll_id

if (!Settings::checkPermission("settings", "editor_roles")) $scroll_id = checkNumeric($_GET["scroll_id"])

Definition at line 9 of file scroll_part_dialog.inc.

◆ $scroll_part_id

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

Definition at line 10 of file scroll_part_dialog.inc.

◆ allowDelete

$form allowDelete = true

Definition at line 40 of file scroll_part_dialog.inc.

◆ content_type

$part content_type = $content_type

Definition at line 35 of file scroll_part_dialog.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
if(!Settings::checkPermission("settings", "editor_roles")) $scroll_id

Definition at line 21 of file scroll_part_dialog.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 46 of file scroll_part_dialog.inc.

◆ scroll_id

$part scroll_id = $scroll_id

Definition at line 34 of file scroll_part_dialog.inc.