/** * Executes sql queries for the module of the software. * * @param string $sSqlModuleFile File SQL * @return mixed (boolean | array) Returns TRUE if there are no errors, otherwise returns an ARRAY of error information. */ public function run($sSqlModuleFile) { return Various::execQueryFile($sSqlModuleFile); }
/** * Restore SQL backup file. * * @access public * @return mixed (boolean | string) Returns TRUE if there are no errors, otherwise returns "the error message". */ public function restore() { $mRet = Various::execQueryFile($this->_sPathName); return $mRet !== true ? print_r($mRet, true) : true; }
/** * Executes sql queries for the upgrade of the software. * * @param string $sSqlUpgradeFile File SQL * @return mixed (boolean | array) Returns TRUE if there are no errors, otherwise returns an ARRAY of error information. */ public function run($sSqlUpgradeFile) { return Various::execQueryFile($sSqlUpgradeFile); }