Преглед изворни кода

Change of the QueryReflection API to support DesignTime.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3489 a333f486-631f-4898-b8df-5754b55c2be0
dflaven пре 10 година
родитељ
комит
874aa8e919
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      core/modelreflection.class.inc.php

+ 3 - 3
core/modelreflection.class.inc.php

@@ -69,7 +69,7 @@ abstract class QueryReflection
 	/**
 	/**
 	 * Throws an exception in case of an invalid syntax
 	 * Throws an exception in case of an invalid syntax
 	 */
 	 */
-	abstract public function __construct($sOQL);
+	abstract public function __construct($sOQL, ModelReflection $oModelReflection);
 
 
 	abstract public function GetClass();
 	abstract public function GetClass();
 	abstract public function GetClassAlias();
 	abstract public function GetClassAlias();
@@ -222,7 +222,7 @@ class ModelReflectionRuntime extends ModelReflection
 
 
 	public function GetQuery($sOQL)
 	public function GetQuery($sOQL)
 	{
 	{
-		return new QueryReflectionRuntime($sOQL);
+		return new QueryReflectionRuntime($sOQL, $this);
 	}
 	}
 
 
 	public function DictString($sStringCode, $sDefault = null, $bUserLanguageOnly = false)
 	public function DictString($sStringCode, $sDefault = null, $bUserLanguageOnly = false)
@@ -244,7 +244,7 @@ class QueryReflectionRuntime extends QueryReflection
 	/**
 	/**
 	 *	throws an exception in case of a wrong syntax
 	 *	throws an exception in case of a wrong syntax
 	 */
 	 */
-	public function __construct($sOQL)
+	public function __construct($sOQL, ModelReflection $oModelReflection)
 	{
 	{
 		$this->oFilter = DBObjectSearch::FromOQL($sOQL);
 		$this->oFilter = DBObjectSearch::FromOQL($sOQL);
 	}
 	}