CMS  Version 3.9
content_inventory.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("developer_tools");
3 Fakoli::usingFeature("grouped_data_view");
4 
5 $page_title = "Content Inventory By Type";
6 $menu_item = "Content Inventory";
7 
8 $showAll = checkNumeric($_GET["showAll"]);
9 
11 
12 $itemsByType = array();
13 
15 
16 $table = new GroupedDataListView($itemsByType, "items_by_type");
17 $table->column("Identifier", "<strong>{identifier}</strong>", true, "width: 20%")
18  ->column("Title", "{DeveloperToolsManager::formatDefault}", true, "width: 40%")
19  ->column("Used in Section(s)", "{DeveloperToolsManager::formatSections}", true, "width: 40%");
20 $table->onStartRow = array($helper, onStartRow);
21 
22 foreach(array_keys($itemsByType) as $group)
23 {
24  $table->group($group, $group);
25 }
26 
27 $table->mode = "tree";
28 $table->groupAsWorksheets = true;
29 $table->excelFile = codify($config['sitename']."_content_inventory").".xls";
30 
31 $script .= $table->writeScript();
32 
33 $checked = $showAll ? "checked='checked'" : "";
34 
35 ?>
36 <p><input type='checkbox' name='showAll' value='1' <?echo $checked?> onclick='location.href="?showAll=" + (this.checked ? "1" : "");'/> Show unmapped items</p>
37 <?
38 $table->drawView();
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
$table onStartRow
$menu_item
$itemsByType
$page_title
$group
Definition: group_form.inc:43
global $config
Definition: import.inc:4