Ejemplo n.º 1
0
 /**
  * This is a singleton
  */
 private function __construct()
 {
     // initialize themes map
     $this->themes = new ICE_Stack();
     $this->themes_compiled = new ICE_Map();
     $this->directives = new ICE_Init_Directive_Registry();
     $this->config_files_loaded = new ICE_Stack();
     // handle compiled themes
     if (defined('ICE_THEMES_COMPILED') && ICE_THEMES_COMPILED !== null) {
         // split at comma
         foreach (explode(',', ICE_THEMES_COMPILED) as $theme) {
             // push on to compiled themes map
             $this->themes_compiled->add($theme, $theme);
         }
     }
     // set up exports
     $this->exports = new ICE_Export_Manager();
     $this->exports->add('styles', new ICE_Component_Style_Export('dynamic', 'css'));
     $this->exports->add('scripts', new ICE_Component_Script_Export('dynamic', 'js'));
 }
Ejemplo n.º 2
0
 /**
  * This is a singleton
  */
 private function __construct()
 {
     // initialize themes map
     $this->themes = new ICE_Stack();
     $this->directives = new ICE_Init_Directive_Registry();
     $this->config_files_loaded = new ICE_Stack();
     // set up exports
     $this->exports = new ICE_Export_Manager();
     $this->exports->add('styles', new ICE_Component_Style_Export('dynamic', 'css'));
     $this->exports->add('scripts', new ICE_Component_Script_Export('dynamic', 'js'));
 }