CMS  Version 3.9
section_map.inc File Reference

Go to the source code of this file.

Variables

 $page_title = "Section Content Map"
 
 $menu_item = "Section Map"
 
 $site_id = checkNumeric($_GET["site_id"])
 
 $sites = query(Site, "ORDER BY site_name")
 
 $tabs = new DataItemTabBar("tabs", $sites)
 
 $sections
 
 $itemsByType
 
 $table = new GroupedDataListView($itemsByType, "items_by_type")
 
foreach($sections as $section) $table mode = "tree"
 
$table groupAsWorksheets = true
 
$table filter = true
 
$table sortable = true
 
$table excelFile = codify($config['sitename']."_section_map").".xls"
 
 $script = $table->writeScript()
 

Variable Documentation

◆ $itemsByType

$itemsByType
Initial value:
= IndexedQuery::create(SectionContent, "WHERE section_id IN (SELECT section_id FROM section WHERE site_id=:s) ORDER BY identifier", "section_id")
->bind(":s", $site_id)
->execute()
$site_id
Definition: section_map.inc:8

Definition at line 21 of file section_map.inc.

◆ $menu_item

$menu_item = "Section Map"

Definition at line 6 of file section_map.inc.

◆ $page_title

$page_title = "Section Content Map"

Definition at line 5 of file section_map.inc.

◆ $script

$script = $table->writeScript()

Definition at line 43 of file section_map.inc.

◆ $sections

$sections
Initial value:
= Query::create(Section, "WHERE site_id=:s ORDER BY section")
->bind(":s", $site_id)
->execute()
Section DataItem, defining the data model for sections within a site.
Definition: section.inc:45

Definition at line 17 of file section_map.inc.

◆ $site_id

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

Definition at line 8 of file section_map.inc.

◆ $sites

$sites = query(Site, "ORDER BY site_name")

Definition at line 10 of file section_map.inc.

◆ $table

$table = new GroupedDataListView($itemsByType, "items_by_type")

Definition at line 25 of file section_map.inc.

◆ $tabs

$tabs = new DataItemTabBar("tabs", $sites)

Definition at line 15 of file section_map.inc.

◆ excelFile

$table excelFile = codify($config['sitename']."_section_map").".xls"

Definition at line 41 of file section_map.inc.

◆ filter

$table filter = true

Definition at line 39 of file section_map.inc.

◆ groupAsWorksheets

$table groupAsWorksheets = true

Definition at line 38 of file section_map.inc.

◆ mode

foreach ( $sections as $section) $table mode = "tree"

Definition at line 37 of file section_map.inc.

◆ sortable

$table sortable = true

Definition at line 40 of file section_map.inc.