SelectQuery Class Reference
[Dynamic query builder]

Inheritance diagram for SelectQuery:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ()
 __clone ()
 getFetchStrategyId ()
 setFetchStrategyId ($id)
 
Returns:
SelectQuery

 hasAliasInside ($alias)
 getAlias ()
 getName ()
 setName ($name)
 
Returns:
SelectQuery

 distinct ()
 
Returns:
SelectQuery

 isDistinct ()
 unDistinct ()
 
Returns:
SelectQuery

 hasJoinedTable ($table)
 join ($table, LogicalObject $logic, $alias=null)
 
Returns:
SelectQuery

 leftJoin ($table, LogicalObject $logic, $alias=null)
 
Returns:
SelectQuery

 setOrderChain (OrderChain $chain)
 
Returns:
SelectQuery

 orderBy ($field, $table=null)
 
Returns:
SelectQuery

 prependOrderBy ($field, $table=null)
 
Returns:
SelectQuery

 desc ()
 
Exceptions:
WrongStateException 

 asc ()
 
Exceptions:
WrongStateException 

 groupBy ($field, $table=null)
 
Returns:
SelectQuery

 having (LogicalObject $exp)
 
Returns:
SelectQuery

 getLimit ()
 getOffset ()
 limit ($limit=null, $offset=null)
 
Exceptions:
WrongArgumentException 

 from ($table, $alias=null)
 
Returns:
SelectQuery

 get ($field, $alias=null)
 BOVM: achtung!
 multiGet ()
 
Returns:
SelectQuery

 arrayGet ($array, $prefix=null)
 
Returns:
SelectQuery

 getFieldsCount ()
 getTablesCount ()
 getFieldNames ()
 toDialectString (Dialect $dialect)
 dropFields ()
 
Returns:
SelectQuery

 dropOrder ()
 
Returns:
SelectQuery


Private Member Functions

 getLastTable ($table=null)
 makeOrder ($field, $table=null)
 
Returns:
OrderBy


Private Attributes

 $distinct = false
 $name = null
 $joiner = null
 $strategyId = null
 
See also:
FetchStrategy

 $limit = null
 $offset = null
 $fields = array()
 $order = null
 $group = array()
 $having = null
 $aliases = array()


Detailed Description

Definition at line 27 of file SelectQuery.class.php.


Constructor & Destructor Documentation

SelectQuery::__construct (  ) 

Definition at line 53 of file SelectQuery.class.php.


Member Function Documentation

SelectQuery::__clone (  ) 

Definition at line 59 of file SelectQuery.class.php.

SelectQuery::getFetchStrategyId (  ) 

Definition at line 65 of file SelectQuery.class.php.

Referenced by BaseDaoWorker::fetchObject().

SelectQuery::setFetchStrategyId ( id  ) 

Returns:
SelectQuery

Definition at line 73 of file SelectQuery.class.php.

SelectQuery::hasAliasInside ( alias  ) 

Definition at line 80 of file SelectQuery.class.php.

SelectQuery::getAlias (  ) 

Implements Aliased.

Definition at line 85 of file SelectQuery.class.php.

Referenced by arrayGet(), and getFieldNames().

SelectQuery::getName (  ) 

Implements Named.

Definition at line 90 of file SelectQuery.class.php.

Referenced by arrayGet(), and toDialectString().

SelectQuery::setName ( name  ) 

Returns:
SelectQuery

Implements Named.

Definition at line 98 of file SelectQuery.class.php.

References $name.

SelectQuery::distinct (  ) 

Returns:
SelectQuery

Definition at line 109 of file SelectQuery.class.php.

Referenced by Criteria::fillSelectQuery(), isDistinct(), and unDistinct().

SelectQuery::isDistinct (  ) 

Definition at line 115 of file SelectQuery.class.php.

References distinct().

Here is the call graph for this function:

SelectQuery::unDistinct (  ) 

Returns:
SelectQuery

Definition at line 123 of file SelectQuery.class.php.

References distinct().

Here is the call graph for this function:

SelectQuery::hasJoinedTable ( table  ) 

Implements JoinCapableQuery.

Definition at line 129 of file SelectQuery.class.php.

SelectQuery::join ( table,
LogicalObject logic,
alias = null 
)

Returns:
SelectQuery

Implements JoinCapableQuery.

Definition at line 137 of file SelectQuery.class.php.

Referenced by Criteria::joinProperties().

SelectQuery::leftJoin ( table,
LogicalObject logic,
alias = null 
)

Returns:
SelectQuery

Implements JoinCapableQuery.

Definition at line 148 of file SelectQuery.class.php.

Referenced by Criteria::joinProperties().

SelectQuery::setOrderChain ( OrderChain chain  ) 

Returns:
SelectQuery

Definition at line 159 of file SelectQuery.class.php.

Referenced by Criteria::fillSelectQuery().

SelectQuery::orderBy ( field,
table = null 
)

Returns:
SelectQuery

Definition at line 169 of file SelectQuery.class.php.

References makeOrder().

Here is the call graph for this function:

SelectQuery::prependOrderBy ( field,
table = null 
)

Returns:
SelectQuery

Definition at line 179 of file SelectQuery.class.php.

References makeOrder().

Here is the call graph for this function:

SelectQuery::desc (  ) 

Exceptions:
WrongStateException 

Returns:
SelectQuery

Definition at line 190 of file SelectQuery.class.php.

SelectQuery::asc (  ) 

Exceptions:
WrongStateException 

Returns:
SelectQuery

Definition at line 204 of file SelectQuery.class.php.

SelectQuery::groupBy ( field,
table = null 
)

Returns:
SelectQuery

Definition at line 217 of file SelectQuery.class.php.

References getLastTable().

Here is the call graph for this function:

SelectQuery::having ( LogicalObject exp  ) 

Returns:
SelectQuery

Definition at line 231 of file SelectQuery.class.php.

Referenced by toDialectString().

SelectQuery::getLimit (  ) 

Definition at line 238 of file SelectQuery.class.php.

References limit().

Here is the call graph for this function:

SelectQuery::getOffset (  ) 

Definition at line 243 of file SelectQuery.class.php.

SelectQuery::limit ( limit = null,
offset = null 
)

Exceptions:
WrongArgumentException 

Returns:
SelectQuery

Definition at line 252 of file SelectQuery.class.php.

References $limit, and $offset.

Referenced by getLimit(), and toDialectString().

SelectQuery::from ( table,
alias = null 
)

Returns:
SelectQuery

Implements JoinCapableQuery.

Definition at line 269 of file SelectQuery.class.php.

SelectQuery::get ( field,
alias = null 
)

BOVM: achtung!

Exceptions:
WrongArgumentException 
Returns:
SelectQuery

Definition at line 284 of file SelectQuery.class.php.

References getLastTable().

Referenced by Criteria::joinProperties().

Here is the call graph for this function:

SelectQuery::multiGet (  ) 

Returns:
SelectQuery

Definition at line 334 of file SelectQuery.class.php.

References $args.

SelectQuery::arrayGet ( array,
prefix = null 
)

Returns:
SelectQuery

Definition at line 348 of file SelectQuery.class.php.

References getAlias(), and getName().

Here is the call graph for this function:

SelectQuery::getFieldsCount (  ) 

Definition at line 383 of file SelectQuery.class.php.

SelectQuery::getTablesCount (  ) 

Definition at line 388 of file SelectQuery.class.php.

SelectQuery::getFieldNames (  ) 

Definition at line 393 of file SelectQuery.class.php.

References getAlias().

Here is the call graph for this function:

SelectQuery::toDialectString ( Dialect dialect  ) 

Reimplemented from QuerySkeleton.

Definition at line 410 of file SelectQuery.class.php.

References $group, getName(), having(), Assert::isTrue(), limit(), and Dialect::quoteField().

Here is the call graph for this function:

SelectQuery::dropFields (  ) 

Returns:
SelectQuery

Definition at line 466 of file SelectQuery.class.php.

SelectQuery::dropOrder (  ) 

Returns:
SelectQuery

Definition at line 475 of file SelectQuery.class.php.

SelectQuery::getLastTable ( table = null  )  [private]

Definition at line 481 of file SelectQuery.class.php.

Referenced by get(), groupBy(), and makeOrder().

SelectQuery::makeOrder ( field,
table = null 
) [private]

Returns:
OrderBy

Definition at line 492 of file SelectQuery.class.php.

References getLastTable().

Referenced by orderBy(), and prependOrderBy().

Here is the call graph for this function:


Member Data Documentation

SelectQuery::$distinct = false [private]

Definition at line 31 of file SelectQuery.class.php.

SelectQuery::$name = null [private]

Definition at line 33 of file SelectQuery.class.php.

Referenced by setName().

SelectQuery::$joiner = null [private]

Definition at line 35 of file SelectQuery.class.php.

SelectQuery::$strategyId = null [private]

See also:
FetchStrategy

Definition at line 38 of file SelectQuery.class.php.

SelectQuery::$limit = null [private]

Definition at line 40 of file SelectQuery.class.php.

Referenced by limit().

SelectQuery::$offset = null [private]

Definition at line 41 of file SelectQuery.class.php.

Referenced by limit().

SelectQuery::$fields = array() [private]

Definition at line 43 of file SelectQuery.class.php.

SelectQuery::$order = null [private]

Definition at line 45 of file SelectQuery.class.php.

SelectQuery::$group = array() [private]

Definition at line 47 of file SelectQuery.class.php.

Referenced by toDialectString().

SelectQuery::$having = null [private]

Definition at line 49 of file SelectQuery.class.php.

SelectQuery::$aliases = array() [private]

Definition at line 51 of file SelectQuery.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:25 2007 for onPHP by  doxygen 1.5.4