CMS  Version 3.9
AdminManager Class Reference

Static Public Member Functions

static registerAdminProxyShim ($id, $shim)
 
static getAdminProxyShim ()
 
static startFrame ($class)
 
static endFrame ()
 

Detailed Description

Definition at line 6 of file admin_manager.inc.

Member Function Documentation

◆ endFrame()

static AdminManager::endFrame ( )
static

Definition at line 54 of file admin_manager.inc.

55  {
56 ?>
57  </body>
58 </html>
59 <?
60  }

◆ getAdminProxyShim()

static AdminManager::getAdminProxyShim ( )
static

Definition at line 20 of file admin_manager.inc.

21  {
22  global $identifier;
23 
24  if (!AdminManager::$proxyShims)
25  {
26  ComponentManager::fireEvent("RegisterAdminProxyShims");
27  }
28 
29  return AdminManager::$proxyShims[$identifier];
30  }
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
$identifier
Definition: rss.inc:37

◆ registerAdminProxyShim()

static AdminManager::registerAdminProxyShim (   $id,
  $shim 
)
static

Definition at line 10 of file admin_manager.inc.

11  {
12  if (!AdminManager::$proxyShims)
13  {
14  AdminManager::$proxyShims = array();
15  }
16 
17  AdminManager::$proxyShims[$id] = $shim;
18  }

◆ startFrame()

static AdminManager::startFrame (   $class)
static

Definition at line 32 of file admin_manager.inc.

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  }
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

The documentation for this class was generated from the following file: