mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
advanced search: ExternalFieldOqlExpression basic constructor
SVN:b1312[5746]
This commit is contained in:
@@ -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
|
||||
|
||||
3387
css/light-grey.css
3387
css/light-grey.css
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user