/**
  * Préparation de l'installation
  */
 public function processInstallFramework()
 {
     // find the current connection type (defined in /plugins/copixDB/profils.definition.xml)
     $config = CopixConfig::instance();
     $driver = $config->copixdb_getProfile();
     $typeDB = $driver->getDriverName();
     // Search each module install file
     $scriptName = 'prepareinstall.' . $typeDB . '.sql';
     $file = CopixModule::getPath('admin') . COPIX_INSTALL_DIR . 'scripts/' . $scriptName;
     CopixDB::getConnection()->doSQLScript($file);
     //make sure that copixmodule is reset
     CopixModule::reset();
     $tpl = new CopixTpl();
     $tpl->assignZone('MAIN', 'admin|installmodulewithdep', array('arModule' => array('generictools', 'auth', 'default', 'admin'), 'url_return' => _url('admin|database|done'), 'messageConfirm' => false));
     return _arDisplay($tpl);
 }
 /**
  * Prepare installation, launch sql script needed during installation
  */
 public function installFramework()
 {
     // find the current connection type (defined in /plugins/copixDB/profils.definition.xml)
     $config = CopixConfig::instance();
     $driver = $config->copixdb_getProfile();
     $typeDB = $driver->getDriverName();
     // Search each module install file
     $scriptName = 'prepareinstall.' . $typeDB . '.sql';
     $file = CopixModule::getPath('admin') . COPIX_INSTALL_DIR . 'scripts/' . $scriptName;
     CopixDB::getConnection()->doSQLScript($file);
     //make sure that copixmodule is reset
     CopixModule::reset();
     foreach (array('admin', 'default', 'auth', 'generictools') as $module) {
         if (($message = CopixModule::installModule($module)) !== true) {
             throw new Exception($message);
         }
     }
     return $this->_generatePassword();
 }
 /**
  * Prepare installation, launch sql script needed during installation
  */
 function prepareInstall()
 {
     // find the current connection type (defined in /plugins/copixDB/profils.definition.xml)
     $pluginDB =& $GLOBALS['COPIX']['COORD']->getPlugin('copixdb');
     $typeDB = $pluginDB->config->profils['Select']->driver;
     // Search each module install file
     $scriptName = 'prepareinstall.' . $typeDB . '.sql';
     $file = COPIX_MODULE_PATH . 'install/' . COPIX_INSTALL_DIR . 'scripts/' . $scriptName;
     $ct = CopixDBFactory::getConnection();
     $ct->doSQLScript($file);
     //make sure that copixmodule is reset
     CopixModule::reset();
 }