function __construct(&$props = NULL) { global $READER_DB; global $ADEI_VIRTUAL_READERS; parent::__construct($props); if (isset($this->props["db_server"])) { $srvid = $this->props["db_server"]; } else { throw new ADEIException(translate("The data source server should be specified")); } if (is_array($READER_DB[$srvid])) { $this->srv = $READER_DB[$srvid]; } else { if (is_array($ADEI_VIRTUAL_READERS[$srvid])) { $this->srv = $ADEI_VIRTUAL_READERS[$srvid]; $this->srv['virtual'] = 1; } else { throw new ADEIException(translate("Invalid server identificator is supplied: \"%s\"", $srvid)); } } }