|
PntComparator |
PntSqlCombiFilter |
PntSqlFilter |
PntSqlJoinFilter |
PntSqlMultiOrFilter |
PntSqlSort |
PntSqlSpec |
|
__clone |
addExtraConditionParamsTo |
addParamsTo |
addSortSelectParamsTo |
appliesTo |
evaluate |
generateSql |
generateSqlForJoins |
getColumnName |
getDescription |
getExtraConditionSql |
getIdColumnIsOnAlias |
getIdPropertyDescriptor |
getItemTableName |
getJoin |
getLabel |
getLast |
getNext |
getPath |
getPersistArray |
getSortSelectExpr |
getSortSubSelect |
getSql |
getSubQueryTemplate |
getValue1Peanut |
getValueProp |
getValueType |
ignoreGlobalFilter |
initDefaultNext |
initFromPersistArray |
initJoinData |
initMoreJoinData |
initPropertyDescriptors |
initTableJoinData |
isJoinFilter |
isPreferredFilter |
mergeTemplate |
setComparatorId |
setIdColumnIsOnAlias |
setNext |
setValue1 |
setValue2 |
|
<?php
/* Copyright (c) MetaClass, 2003-2013
Distrubuted and licensed under under the terms of the GNU Affero General Public License
version 3, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License, http://www.gnu.org/licenses/agpl.txt */
Gen::includeClass('', 'pnt/db/query');
/** Specifies a navigation over a relationship, generates SQL.
* Used by FilterFormPart in the advanced search.
* part for navigational query specification, part of a PntSqlSpec
* @see http://www.phppeanuts.org/site/index_php/Pagina/170
*
* s produce what comes after the WHERE clause to retrieve
* some objects as well as a JOIN clause to access related tables.
* Objects of this class produce JOIN clauses.
* $this->next must be set to a that will provide
* the WHERE expression for searching the related table,
* or to another PntSqlJoinFilter for another join.
*
* Current version is MySQL specific. In future, all SQL generating methods should
* delegate to PntQueryHandler to support other databases
* Current implementation will AND the own where expression only if a sqlTemplate has been set.
* @package pnt/db/query
*/
class PntSqlJoinFilter extends {
public $next = null;
|
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/ .
|
|