CMS  Version 3.9
developer_tools_manager.inc
Go to the documentation of this file.
1 <?php
14 {
16  {
17 
18  }
19 
20  static function setDefaults()
21  {
22  //TODO: Set default configuration parameters here
23  }
24 
25  static function registerIcons($icons)
26  {
27  $icons["Developer Tools"] = "code";
28  return $icons;
29  }
30 
31  static function formatDefault($item)
32  {
33  return $item->format();
34  }
35 
36  static function formatSections($item)
37  {
38  $sectionContent = Query::create(SectionContent, "WHERE identifier=:i")
39  ->bind(":i", $item->identifier)
40  ->execute();
41 
42  $map = formatItems($sectionContent, "{Section.section}", ", ");
43  if (!$map) $map = "<em>Not mapped</em>";
44  return $map;
45  }
46 
47 
48  static function formatComponent($item)
49  {
50  return $item->component;
51  }
52 
53  static function formatPriority($item)
54  {
55  return $item->priority;
56  }
57 
58  static function formatHandler($item)
59  {
60  if (is_array($item->handler)) return implode("::", $item->handler);
61  return $item->handler;
62  }
63 }
64 ?>
Provides a central management class for event handlers and common functionality for the developer_too...