Select multiple objects in OQL (beta, for integration within the UI)

SVN:trunk[327]
This commit is contained in:
Romain Quetiez
2010-04-13 09:42:22 +00:00
parent 646ab068da
commit 5d46a94ddf
9 changed files with 3734 additions and 3600 deletions

View File

@@ -150,16 +150,22 @@ abstract class OqlQuery
class OqlObjectQuery extends OqlQuery
{
protected $m_aSelect; // array of selected classes
protected $m_oClass;
protected $m_oClassAlias;
public function __construct($oClass, $oClassAlias = '', $oCondition = null, $aJoins = null)
public function __construct($oClass, $oClassAlias, $oCondition = null, $aJoins = null, $aSelect = null)
{
$this->m_aSelect = $aSelect;
$this->m_oClass = $oClass;
$this->m_oClassAlias = $oClassAlias;
parent::__construct($oCondition, $aJoins);
}
public function GetSelectedClasses()
{
return $this->m_aSelect;
}
public function GetClass()
{
return $this->m_oClass->GetValue();
@@ -179,20 +185,4 @@ class OqlObjectQuery extends OqlQuery
}
}
class OqlValueSetQuery extends OqlObjectQuery
{
protected $m_oSelectExpr;
public function __construct($oSelectExpr, $oClass, $oClassAlias = '', $oCondition = null, $aJoins = null)
{
$this->m_oSelectExpr = $oSelectExpr;
parent::__construct($oClass, $oClassAlias, $oCondition, $aJoins);
}
public function GetSelectExpression()
{
return $this->m_oSelectExpr;
}
}
?>