CMS  Version 3.9
section_form.inc File Reference

Go to the source code of this file.

Variables

 $menu_item = "Sections"
 
 $section_id = checkNumeric($_GET["section_id"])
 
 $site_id = checkNumeric($_GET["site_id"])
 
 $section = new Section()
 
 $allowDelete = false
 
if($section_id) else
 
$section section_type = "Content"
 
 $form = new AutoForm($section)
 
$form allowDelete = $allowDelete
 
 $templateSelect = new TemplateSelectFieldRenderer($form, "default_template", "Default Template", "site")
 
 $roleList = new CheckListFieldRenderer($form, "default_role", "Default Role", SiteRole::getRolesArray())
 
 $siteSelect = new RelatedItemSelectFieldRenderer($form, "site_id", "Site", Site, "ORDER BY site_name", "site_name", "site_id")
 
 $identifierSelect = new CMSItemSelectFieldRenderer($form, "default_page", "Default Page", null)
 
 $permissionsList = Settings::createPermissionsFieldRenderer($form, "default_permissions", "Default Permissions")
 
 $types = SectionContentManagerMap::getRegisteredTypes()
 
 $typeSelect = $form->dropdown("section_type", "Section Type", array_combine($types, $types))
 
if($method=="POST") $script = $form->writeScript()
 
 $tabs = sectionTabs($section_id)
 

Variable Documentation

◆ $allowDelete

Definition at line 45 of file section_form.inc.

◆ $form

$form = new AutoForm($section)

Definition at line 64 of file section_form.inc.

◆ $identifierSelect

$identifierSelect = new CMSItemSelectFieldRenderer($form, "default_page", "Default Page", null)

Definition at line 74 of file section_form.inc.

◆ $menu_item

$menu_item = "Sections"

Definition at line 39 of file section_form.inc.

◆ $permissionsList

$permissionsList = Settings::createPermissionsFieldRenderer($form, "default_permissions", "Default Permissions")

Definition at line 75 of file section_form.inc.

◆ $roleList

$roleList = new CheckListFieldRenderer($form, "default_role", "Default Role", SiteRole::getRolesArray())

Definition at line 71 of file section_form.inc.

◆ $script

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

Definition at line 88 of file section_form.inc.

◆ $section

$section = new Section()

Definition at line 44 of file section_form.inc.

◆ $section_id

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

Definition at line 41 of file section_form.inc.

◆ $site_id

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

Definition at line 42 of file section_form.inc.

◆ $siteSelect

$siteSelect = new RelatedItemSelectFieldRenderer($form, "site_id", "Site", Site, "ORDER BY site_name", "site_name", "site_id")

Definition at line 73 of file section_form.inc.

◆ $tabs

$tabs = sectionTabs($section_id)

Definition at line 90 of file section_form.inc.

◆ $templateSelect

$templateSelect = new TemplateSelectFieldRenderer($form, "default_template", "Default Template", "site")

Definition at line 69 of file section_form.inc.

◆ $types

Definition at line 77 of file section_form.inc.

◆ $typeSelect

$typeSelect = $form->dropdown("section_type", "Section Type", array_combine($types, $types))

Definition at line 78 of file section_form.inc.

◆ allowDelete

$form allowDelete = $allowDelete

Definition at line 65 of file section_form.inc.

◆ else

if ( $section_id) else
Initial value:
{
$section->site_id = $site_id
$section
$site_id

Definition at line 58 of file section_form.inc.

◆ section_type

$section section_type = "Content"

Definition at line 61 of file section_form.inc.