Ejemplo n.º 1
0
 /**
  * Load and compare a module to a given setup
  *
  * @param CSetup $setup The CSetup object to compare to
  * 
  * @return void
  */
 function compareToSetup(CSetup $setup)
 {
     $this->mod_name = $setup->mod_name;
     $this->loadMatchingObject();
     $this->mod_type = $setup->mod_type;
     $this->_latest = $setup->mod_version;
     $this->_upgradable = $this->mod_version < $this->_latest;
     $this->_too_new = $this->mod_version > $this->_latest;
     $this->_configable = is_file("modules/{$this->mod_name}/configure.php");
     if ($this->_id) {
         $this->_dsns = $setup->getDatasources();
     }
     $this->_dependencies = $setup->dependencies;
     if (!$this->_id) {
         $this->mod_ui_order = 1000;
     }
 }