芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/components/com_joomlawatch/class.joomlawatch.db.php
database = & JFactory :: getDBO(); } /** * query without a result * * @param unknown_type $query */ function executeQuery($query) { $this->database->setQuery($query); $result = $this->database->query(); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } return $result; } /** * Query with single result * * @param unknown_type $query * @return unknown */ function resultQuery($query) { $this->database->setQuery($query); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } $result = $this->database->loadResult(); return $result; } /** * Query with multiple results as objects * * @param unknown_type $query * @return unknown */ function objectListQuery($query) { $this->database->setQuery($query); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } $rows = @ $this->database->loadObjectList(); return $rows; } /** * Query with multiple results as asoc list * * @param unknown_type $query * @return unknown */ function asocListQuery($query) { $this->database->setQuery($query); $result = $this->database->query(); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } $rows = $this->database->loadAssocList(); return $rows; } /** * only proxy, should be removed * * @param unknown_type $query */ function setQuery($query) { $this->database->setQuery($query); } /** * only proxy, should be removed * * @param unknown_type $query */ function loadResult() { $result = $this->database->resultQuery($query); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } return $result; } /** * only proxy, should be removed * * @param unknown_type $query */ function loadObjectList() { $result = $this->database->objectListQuery($query); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } return $result; } /** * only proxy, should be removed * * @param unknown_type $query */ function query() { $result = $this->database->query(); if ($this->database->getErrorNum() > 0) { JoomlaWatchLog::error(__FILE__,__LINE__,$query); } return $result; } /** * only proxy, should be removed * * @param unknown_type $query */ function getQuery() { $this->database->getQuery(); } /** escape sql */ function getEscaped($sql) { return $this->database->getEscaped($sql); } } ?>