CMS  Version 3.9
event_map.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 = "Event Map";
6 $menu_item = "Event Map";
7 
8 
10 
11 
12 $table = new GroupedDataListView($eventMap, "event_map");
13 $table->column("Component", "{component}", true, "width: 20%")
14  ->column("Priority", "{priority}", true, "width: 10%; text-align: right")
15  ->column("Handler", "{handler}", true, "width: 60%")
16  ->column("Exists?", "<img src='/fakoli/images/{exists:on/off}.png' alt='{exists:Yes/No}'/>", true, "text-align: center");
17 
18 foreach(array_keys($eventMap) as $event)
19 {
20  $table->group($event, $event);
21 }
22 
23 $table->mode = "tree";
24 $table->groupAsWorksheets = true;
25 $table->excelFile = codify($config['site_name']."_event_map").".xls";
26 
27 $script .= $table->writeScript();
28 $table->drawView();
$event
Definition: event_form.inc:46
static getEventHandlers()
Retrieve the event handler map.
static convertMap($map)
Converts and sorts a full event map.
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
$eventMap
Definition: event_map.inc:9
$menu_item
Definition: event_map.inc:6
$page_title
Definition: event_map.inc:5
$table
Definition: event_map.inc:12
$script
Definition: event_map.inc:27
global $config
Definition: import.inc:4