function __construct(redMigratorStep $step = null) { parent::__construct($step); $class = !empty($step->class) ? $step->class : 'redMigrator'; $name = !empty($step->name) ? $step->name : ''; $xmlpath = !empty($step->xmlpath) ? $step->xmlpath : ''; JLoader::import('helpers.redmigrator', JPATH_COMPONENT_ADMINISTRATOR); redMigratorHelper::requireClass($name, $xmlpath, $class); // @@ Fix bug using PHP < 5.2.3 version $this->_conditions = call_user_func($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(redMigratorStep $step = null) { parent::__construct($step); }