advanced search: ExternalFieldOqlExpression basic constructor

SVN:b1312[5746]
This commit is contained in:
Bruno Da Silva
2018-04-26 13:38:19 +00:00
parent d1d50e0448
commit d8dd0437b3
2 changed files with 1804 additions and 1604 deletions

View File

@@ -174,9 +174,28 @@ class ExternalFieldOqlExpression extends ExternalFieldExpression implements Chec
function __construct($oExpr1, $oExpr2)
{
parent::__construct("TOTO");
$sName = '';
if ($oExpr1 instanceof ExternalFieldOqlExpression)
{
$this->aExpression = $oExpr1->GetExpressions();
}
else
{
$this->aExpression[] = $oExpr1;
}
$this->aExpression[] = $oExpr2;
$sName = $oExpr1->GetValue().'->'.$oExpr2->GetValue();
parent::__construct($sName);
}
public function GetExpressions()
{
return $this->aExpression;
}
/**
* Check the validity of the expression with regard to the data model
* and the query in which it is used

File diff suppressed because it is too large Load Diff