function add_module()
 {
     $mod_dbo = new ModuleDBO();
     $mod_dbo->load($this->post);
     add_ModuleDBO($mod_dbo);
     $this->setTemplate("finished");
 }
 /**
  * Install Module
  *
  * This method is called by the init() method whenever a new module
  * is being installed.
  */
 public function install()
 {
     // Create a new ModuleDBO and add it to the database
     $this->moduleDBO = new ModuleDBO();
     $this->moduleDBO->setName($this->getName());
     $this->moduleDBO->setEnabled($this->isEnabled() ? "Yes" : "No");
     $this->moduleDBO->setType($this->getType());
     $this->moduleDBO->setShortDescription($this->getShortDescription());
     $this->moduleDBO->setDescription($this->getDescription());
     add_ModuleDBO($this->moduleDBO);
 }