|
PntComparator |
PntSqlCombiFilter |
PntSqlFilter |
PntSqlJoinFilter |
PntSqlMultiOrFilter |
PntSqlSort |
PntSqlSpec |
|
getSqlTemplate |
__clone |
addParamsTo |
andWhere |
appliesTo |
assocSelectFrom |
by |
canBeSortSpec |
compare |
evaluate |
evaluateValue |
generateSql |
getColumnName |
getDescription |
getExtraSelectExpressions |
getFieldMapPrefixed |
getGroupByField |
getGroupBySql |
getId |
getInstance |
getInstanceForNav |
getItemTableName |
getItemType |
getLast |
getNavigation |
getPath |
getPersistArray |
getPropLabel |
getSql |
getSqlForGroupBy |
getSql_WhereToLimit |
getTableAlias |
getValueProp |
getValueType |
ignoreGlobalFilter |
initConverter |
initFromPersistArray |
initPropertyDescriptors |
instanceFromPersistArray |
orWhere |
selectFrom |
setComparatorId |
setValue1 |
setValue2 |
sortBy |
|
// if field not set, builds template from sqlForPath and comparator(Id)
function () {
if ($this->sqlTemplate) return $this->sqlTemplate;
$template = '';
$comp = $this->('comparator');
if (!$comp) throw new PntError('No comparator '. Gen::toString($this));
$sqlOperator = $comp->();
if ($sqlOperator == '=' && $this->value1 === null)
$sqlOperator = 'IS';
if ($sqlOperator == '!=' && $this->value1 === null)
$sqlOperator = 'IS NOT';
if ($comp && ($comparatorPreceder = $comp->('preceder')) )
$template .= "$comparatorPreceder ";
$template .= "(\$columnName $sqlOperator ?";
if ($comp && ($comparatorAddition = $comp->('addition')) )
$template .= " $comparatorAddition ?";
$template .= ")";
return $template;
}
|
Copyright (c) MetaClass, 2003-
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
Click here for a copy of the license or see http://www.gnu.org/licenses/ .
|
|