skipDatabaseTests()) { return self::LV_SKIP; } try { $archiveConfig = DUPX_ArchiveConfig::getInstance(); $this->charsetsList = $archiveConfig->dbInfo->charSetList; $this->collationsList = $archiveConfig->dbInfo->collationList; $this->invalidCharsets = $archiveConfig->invalidCharsets(); $this->invalidCollations = $archiveConfig->invalidCollations(); if (empty($this->invalidCharsets) && empty($this->invalidCollations)) { return self::LV_PASS; } else { return self::LV_HARD_WARNING; } } catch (Exception $e) { $this->errorMessage = $e->getMessage(); return self::LV_FAIL; } } public function getTitle() { return 'Character Set and Collation Capability'; } protected function failContent() { $dbFuncs = DUPX_DB_Functions::getInstance(); return dupxTplRender('parts/validation/database-tests/db-supported-charset', array( 'testResult' => $this->testResult, 'extraData' => $this->extraData, 'charsetsList' => $this->charsetsList, 'collationsList' => $this->collationsList, 'invalidCharsets' => $this->invalidCharsets, 'invalidCollations' => $this->invalidCollations, 'usedCharset' => $dbFuncs->getRealCharsetByParam(), 'usedCollate' => $dbFuncs->getRealCollateByParam(), 'errorMessage' => $this->errorMessage ), false); } protected function hwarnContent() { return $this->failContent(); } protected function passContent() { return $this->failContent(); } }