User management by profile moving forward: pages to check the projection of objects/users in user defined dimensions

Introduced parameters in OQL (:myvar)
Added the verb MetaModel::IsValidObject($oMyObj)

SVN:trunk[88]
This commit is contained in:
Romain Quetiez
2009-07-24 13:14:51 +00:00
parent 2a7c89af21
commit 6b6f89f1c1
19 changed files with 1107 additions and 637 deletions

View File

@@ -28,6 +28,9 @@ class TrueSQLExpression extends TrueExpression
class FieldSQLExpression extends FieldExpression
{
}
class VariableSQLExpression extends VariableExpression
{
}
@@ -212,7 +215,7 @@ class SQLQuery
}
// Interface, build the SQL query
public function RenderSelect($aOrderBy = array())
public function RenderSelect($aOrderBy = array(), $aArgs = array())
{
// The goal will be to complete the lists as we build the Joins
$aFrom = array();
@@ -224,7 +227,7 @@ class SQLQuery
$sSelect = self::ClauseSelect($aFields);
$sFrom = self::ClauseFrom($aFrom);
$sWhere = self::ClauseWhere($oCondition);
$sWhere = self::ClauseWhere($oCondition, $aArgs);
$sOrderBy = self::ClauseOrderBy($aOrderBy);
if (!empty($sOrderBy))
{
@@ -294,9 +297,9 @@ class SQLQuery
return $sSetValues;
}
private static function ClauseWhere($oConditionExpr)
private static function ClauseWhere($oConditionExpr, $aArgs = array())
{
return $oConditionExpr->Render();
return $oConditionExpr->Render($aArgs);
}
private static function ClauseOrderBy($aOrderBy)