Cleanup code

SVN:trunk[5240]
This commit is contained in:
Eric Espié
2018-01-12 13:37:40 +00:00
parent ae946f6821
commit 9571404907
3 changed files with 57 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ require_once('cmdbsource.class.inc.php');
abstract class SQLQuery
{
private $m_SourceOQL = '';
private $m_bBeautifulQuery = false;
protected $m_bBeautifulQuery = false;
public function __construct()
{
@@ -101,6 +101,13 @@ abstract class SQLQuery
return $sDelTables;
}
/**
* @param $aFrom
* @param null $sIndent
* @param int $iIndentLevel
* @return string
* @throws CoreException
*/
protected static function ClauseFrom($aFrom, $sIndent = null, $iIndentLevel = 0)
{
$sLineBreakLong = $sIndent ? "\n".str_repeat($sIndent, $iIndentLevel + 1) : '';