Beispiel #1
0
 /** Returns a singleton instance of the extensionmanager. Use this instead of "new extensionmanager()" as it
  * performs some initialization.
  */
 function get_extensionmanager()
 {
     if (is_object(self::$singleton)) {
         return self::$singleton;
     }
     self::$singleton = new extensionmanager();
     self::$singleton->init();
     return self::$singleton;
 }
Beispiel #2
0
 function __construct($description_file)
 {
     $em = extensionmanager::get_extensionmanager();
     $this->description_file = $description_file;
     $this->values = $this->parse_description_file($this->description_file);
     $this->name = $this->values['name'];
     $this->path = $this->values['path'];
     $this->description = $this->values['description'];
     $this->obj_type = $this->values['obj_type'];
     $this->classtype = $this->values['classtype'];
     $this->category = $this->values['category'];
     $this->enabled_default = $this->values['enabled_default'] === "TRUE" ? TRUE : FALSE;
     $this->requirements = $this->values['req_modules'];
     parent::__construct(steam_factory::get_object_by_name($GLOBALS["STEAM"]->get_id(), "/config/koala/extensions/" . $this->get_name()));
 }
Beispiel #3
0
 public function get_extensionmanager()
 {
     return extensionmanager::get_extensionmanager();
 }