Optimizations:

- Setup: grouped CREATE TABLE / ALTER TABLE statements in one single CREATE table
- Every page: cache the prepared queries and data model into APC
Cleanup: removed unused verb RegisterPlugin
Fix: GetObject could fail (could not find the reference from within the forum)

SVN:trunk[1154]
This commit is contained in:
Romain Quetiez
2011-03-30 08:30:42 +00:00
parent bdf46e8136
commit b423e98295
5 changed files with 260 additions and 104 deletions

View File

@@ -37,6 +37,7 @@ require_once('cmdbsource.class.inc.php');
class SQLQuery
{
private $m_SourceOQL = '';
private $m_sTable = '';
private $m_sTableAlias = '';
private $m_aFields = array();
@@ -69,6 +70,16 @@ class SQLQuery
$this->m_oSelectedIdField = $oSelectedIdField;
}
public function SetSourceOQL($sOQL)
{
$this->m_SourceOQL = $sOQL;
}
public function GetSourceOQL()
{
return $this->m_SourceOQL;
}
public function DisplayHtml()
{
if (count($this->m_aFields) == 0) $sFields = "";