CMS  Version 3.9
admin_manager.inc
Go to the documentation of this file.
1 <?php
7 {
8  private static $proxyShims = null;
9 
10  static function registerAdminProxyShim($id, $shim)
11  {
12  if (!AdminManager::$proxyShims)
13  {
14  AdminManager::$proxyShims = array();
15  }
16 
17  AdminManager::$proxyShims[$id] = $shim;
18  }
19 
20  static function getAdminProxyShim()
21  {
22  global $identifier;
23 
24  if (!AdminManager::$proxyShims)
25  {
26  ComponentManager::fireEvent("RegisterAdminProxyShims");
27  }
28 
29  return AdminManager::$proxyShims[$identifier];
30  }
31 
32  static function startFrame($class)
33  {
34  global $script;
37  $css = explode(",", Settings::getValue("online_help", "help_css"));
38 
39  foreach($css as $c)
40  {
41  $styles .= "<link href='$c' rel='stylesheet'/>\n";
42  }
43 ?>
44 <!DOCTYPE html>
45 <html>
46  <head>
47  <?echo $styles?>
48  <?echo $script?>
49  </head>
50  <body class='<?echo $class?>'>
51 <?
52  }
53 
54  static function endFrame()
55  {
56 ?>
57  </body>
58 </html>
59 <?
60  }
61 }?>
static registerAdminProxyShim($id, $shim)
static endFrame()
static getAdminProxyShim()
static startFrame($class)
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static getStyles()
Returns the HTML link tags for CSS files specified by the registered components in their manifest fil...
Definition: core.inc:603
static getScripts()
Returns the HTML scripts tags for Javascript files specified by the registered components in their ma...
Definition: core.inc:554
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104
if(!checkRole("admin")) $c
$styles
$identifier
Definition: rss.inc:37