setQuery('SHOW TABLES')->query(); } catch(Exception $e){ AliceUtilLogger::WriteLog(_AE_LOG_INFO, $this->checkName." Test failed, can't execute SHOW TABLES statement"); $this->setResult(-1); throw new Exception(Text::_('ALICE_ANALYZE_REQUIREMENTS_DBPERMISSIONS_ERROR')); } if(!$result) { AliceUtilLogger::WriteLog(_AE_LOG_INFO, $this->checkName." Test failed, can't execute SHOW TABLES statement"); $this->setResult(-1); throw new Exception(Text::_('ALICE_ANALYZE_REQUIREMENTS_DBPERMISSIONS_ERROR')); } try{ $result = $db->setQuery('SHOW CREATE TABLE '.$db->nameQuote('#__ak_profiles'))->query(); } catch(Exception $e){ AliceUtilLogger::WriteLog(_AE_LOG_INFO, $this->checkName." Test failed, can't execute SHOW CREATE TABLE statement"); $this->setResult(-1); throw new Exception(Text::_('ALICE_ANALYZE_REQUIREMENTS_DBPERMISSIONS_ERROR')); } if(!$result) { AliceUtilLogger::WriteLog(_AE_LOG_INFO, $this->checkName." Test failed, can't execute SHOW CREATE TABLE statement"); $this->setResult(-1); throw new Exception(Text::_('ALICE_ANALYZE_REQUIREMENTS_DBPERMISSIONS_ERROR')); } return true; } public function getSolution() { return Text::_('ALICE_ANALYZE_REQUIREMENTS_DBPERMISSIONS_SOLUTION'); } }