Inherits PntSqlSpec.
Inherited by PntSqlCombiFilter, and PntSqlJoinFilter.
Public Member Functions | |
initPropertyDescriptors () | |
getId () | |
getPath () | |
getItemType () | |
getPropLabel () | |
appliesTo ($type, $persistent=false) | |
getTableAlias () | |
getItemTableName () | |
getValueProp () | |
getValueType () | |
setComparatorId ($value) | |
setValue1 ($value) | |
setValue2 ($value) | |
by ($comparatorId, $value1=null, $value2=null) | |
andWhere ($path, $comparatorId=null, $value1=null, $value2=null) | |
orWhere ($path, $comparatorId=null, $value1=null, $value2=null) | |
sortBy ($path, $direction='ASC') | |
getFieldMapPrefixed () | |
getSqlTemplate () | |
addParamsTo ($qh) | |
getColumnName () | |
generateSql (&$aliasCount, &$paramCount, $backTrack=array()) | |
getSql () | |
getSqlForGroupBy () | |
getGroupBySql () | |
getGroupByField () | |
getSql_WhereToLimit ($groupBy=true) | |
getExtraSelectExpressions () | |
getDescription ($conv) | |
initConverter ($conv) | |
getPersistArray () | |
initFromPersistArray ($array) | |
getNavigation () | |
getLast () | |
canBeSortSpec () | |
ignoreGlobalFilter ($wheater) | |
evaluate ($item) | |
evaluateValue ($value) | |
assocSelectFrom (&$array) | |
selectFrom (&$array) | |
compare ($a, $b) | |
__clone () | |
Public Member Functions inherited from PntSqlSpec | |
__construct ($id=null) | |
getId () | |
getLabel () | |
getQueryHandler () | |
getDescription ($conv) | |
setDescription ($value) | |
getSqlForJoin () | |
generateSqlForJoins (&$aliasCount, &$paramCount, $backTrack=array()) | |
isJoinFilter () | |
where ($path, $comparatorId=null, $value1=null, $value2=null) | |
sortBy ($path, $direction='ASC') | |
retrieve () | |
retrieveFirst () | |
retrieveOne () | |
Public Member Functions inherited from PntObject | |
__construct () | |
copy () | |
getClass () | |
getClassDescriptor () | |
initPropertyDescriptors () | |
getOid () | |
addFieldProp ($name, $type, $readOnly=false, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null, $persistent=true) | |
addDerivedProp ($name, $type, $readOnly=true, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null) | |
addMultiValueProp ($name, $type, $readOnly=true, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null) | |
getPropertyDescriptor ($propertyName) | |
get ($propertyName, $filter=true) | |
set ($propertyName, $value) | |
getOptions ($name, $filter=true) | |
getValueValidator ($prop) | |
validateGetErrorString ($prop, $value, $validateReadOnly=true) | |
basicGetLabel () | |
getLabel () | |
__toString () | |
release () | |
getEditInfo () | |
toString () | |
_getValueValidator ($prop) | |
Static Public Member Functions | |
static | getInstance ($itemType, $path, $comparatorId=null, $value1=null, $value2=null) |
static | getInstanceForNav ($nav) |
static | instanceFromPersistArray ($array) |
Static Public Member Functions inherited from PntSqlSpec | |
initPropertyDescriptors () | |
Static Public Member Functions inherited from PntObject | |
static | isPersistent () |
static | getClassDescriptorClass () |
static | getClassDir () |
static | getClassLabel () |
static | getUiColumnPaths () |
static | getReportColumnPaths () |
static | getUiFieldPaths ($clsDes) |
static | newNavigation ($key, $itemType) |
Data Fields | |
$comparatorId = 0 | |
$valueType | |
$tableAlias | |
$itemTableName | |
$key | |
$value1 | |
$value2 | |
$columnName | |
$sqlTemplate | |
$navigation | |
$visible = true | |
Data Fields inherited from PntSqlSpec | |
$label | |
$propLabel | |
$itemType | |
__clone | ( | ) |
addParamsTo | ( | $qh | ) |
Add the parameter values from this to $qh
PntDao | $qh |
andWhere | ( | $path, | |
$comparatorId = null , |
|||
$value1 = null , |
|||
$value2 = null |
|||
) |
(Navigational query DSL)
string | $path | the path to AND filter by, or PntSqlFilter to AND filter by |
string | $comparatorId | one id from PntComparator::getInstances |
mixed | $value1 | dynamically typed by >>valueType |
mixed | $value2 | dynamically typed by >>valueType |
PntReflectionError |
appliesTo | ( | $type, | |
$persistent = false |
|||
) |
string | $type | type name |
boolean | wheather using ::getSql |
assocSelectFrom | ( | & | $array | ) |
Select objects from $array that match $this, leaving keys intact
by | ( | $comparatorId, | |
$value1 = null , |
|||
$value2 = null |
|||
) |
(Navigational query DSL) Sets comparator and values to filter by
string | $comparatorId | one id from PntComparator::getInstances |
mixed | $value1 | dynamically typed by >>valueType |
mixed | $value2 | dynamically typed by >>valueType |
PntReflectionError |
canBeSortSpec | ( | ) |
compare | ( | $a, | |
$b | |||
) |
evaluate | ( | $item | ) |
evaluateValue | ( | $value | ) |
Return the result of comparing the supplied value to the vaules of this, using the comparator
generateSql | ( | & | $aliasCount, |
& | $paramCount, | ||
$backTrack = array() |
|||
) |
getColumnName | ( | ) |
getDescription | ( | $conv | ) |
getExtraSelectExpressions | ( | ) |
getFieldMapPrefixed | ( | ) |
getGroupByField | ( | ) |
Returns the name of the field to use for GROUP BY,
getGroupBySql | ( | ) |
getId | ( | ) |
|
static |
string | $itemType | type of items to filter from/retrieve |
string | $path | the path to filter by |
string | $comparatorId | one id from PntComparator::getInstances |
mixed | $value1 | dynamically typed by >>valueType |
mixed | $value2 | dynamically typed by >>valueType |
PntReflectionError |
|
static |
getItemTableName | ( | ) |
The name of the table the column is stored in. Used for creating join condition. if the key and itemtype do not identify a persistent fieldProperty, this must be set explicitly
getItemType | ( | ) |
getLast | ( | ) |
getNavigation | ( | ) |
PntError |
getPath | ( | ) |
getPersistArray | ( | ) |
getPropLabel | ( | ) |
getSql | ( | ) |
getSql_WhereToLimit | ( | $groupBy = true | ) |
Returns what comes after the WHERE clause up to but not including the LIMIT clause. This includes eventual ORDER BY, GROUP BY and HAVING clauses
getSqlForGroupBy | ( | ) |
When querying for peanuts, JOINS may be made to search by colums related by a 1 to m relationship. Without GROUP BY this will lead to a row for each value found in each related column. In practice one wants each peanut only once. By grouping by id only one row is returned for each column.
getSqlTemplate | ( | ) |
getTableAlias | ( | ) |
the alias or tablename to be used as prefix with the columnName. Set by previous JoinFilter
getValueProp | ( | ) |
getValueType | ( | ) |
ignoreGlobalFilter | ( | $wheater | ) |
Normal filters do not apply global filters, but ValidVersionFilters do, unless this method is called with true as the argument
initConverter | ( | $conv | ) |
Initialize the converter
$conv | PntStringConverter |
initFromPersistArray | ( | $array | ) |
initPropertyDescriptors | ( | ) |
|
static |
Create a new instance according to the supplied array
PRECONDITION: the class of the filter has to be included
array | $array | created by ::getPersistArray |
PntReflectionError |
orWhere | ( | $path, | |
$comparatorId = null , |
|||
$value1 = null , |
|||
$value2 = null |
|||
) |
(Navigational query DSL)
string | $path | the path to OR filter by, or PntSqlFilter to OR filter by |
string | $comparatorId | one id from PntComparator::getInstances |
mixed | $value1 | dynamically typed by >>valueType |
mixed | $value2 | dynamically typed by >>valueType |
PntReflectionError |
selectFrom | ( | & | $array | ) |
Select objects from $array that match $this, renumbering the keys
setComparatorId | ( | $value | ) |
setValue1 | ( | $value | ) |
setValue2 | ( | $value | ) |
sortBy | ( | $path, | |
$direction = 'ASC' |
|||
) |
(Navigational query DSL)
string | $path | the path to sort by |
string | $direction | 'ASC' or 'DESC' |
PntReflectionError | if the path does not exist from >>itemType |
$columnName |
$comparatorId = 0 |
$itemTableName |
$key |
$navigation |
$sqlTemplate |
$tableAlias |
$value1 |
$value2 |
$valueType |
$visible = true |