function __construct(JUpgradeproStep $step = null) { parent::__construct($step); $class = !empty($step->class) ? $step->class : 'JUpgradepro'; $name = !empty($step->name) ? $step->name : ''; $xmlpath = !empty($step->xmlpath) ? $step->xmlpath : ''; JLoader::import('helpers.jupgradepro', JPATH_COMPONENT_ADMINISTRATOR); JUpgradeproHelper::requireClass($name, $xmlpath, $class); // @@ Fix bug using PHP < 5.2.3 version if (version_compare(PHP_VERSION, '5.2.3', '<')) { $this->_conditions = call_user_func(array($class, 'getConditionsHook')); } else { $this->_conditions = $class::getConditionsHook(); } $db_config = array(); $db_config['driver'] = $this->params->old_dbtype; $db_config['host'] = $this->params->old_hostname; $db_config['user'] = $this->params->old_username; $db_config['password'] = $this->params->old_password; $db_config['database'] = $this->params->old_db; $db_config['prefix'] = $this->params->old_dbprefix; $this->_db_old = JDatabase::getInstance($db_config); }
function __construct(JUpgradeproStep $step = null) { parent::__construct($step); }