/**
  * Constructs a new ModuleObject.
  *
  * Note: Before you call this constructor, you have to set the variable $module!
  **/
 public function __construct($package)
 {
     // Set attributes
     $this->module = get_class($this);
     $this->package = $package;
     // Start Benchmark
     $debug = Core::getObject('Core.System.Debug');
     $debug->startClock($this->module);
     // Set the current working dir into temporary config data.
     // We need the value later in all __destruct methods because the cwd will be invalid there.
     // Set back with: Core::destruct()
     $cwd = getcwd();
     if ($cwd == false) {
         $cwd = Config::get("general.path");
     }
     Config::setTemp('cwd', $cwd);
 }