Class: Doctrine_RawSql

Source Location: /Doctrine/RawSql.php

Class Doctrine_RawSql

Class Overview

Doctrine_RawSql

Located in /Doctrine/RawSql.php [line 33]

Doctrine_Object
   |
   --Doctrine_Hydrate
      |
      --Doctrine_Query_Abstract
         |
         --Doctrine_RawSql
Author(s): Information Tags:
Version:  $Revision: 1847 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Hydrate

Doctrine_Hydrate::$aggregateMap
Doctrine_Hydrate::$parts
Doctrine_Hydrate::$pendingAggregates
Doctrine_Hydrate::$type
Doctrine_Hydrate::$_aliasMap
Doctrine_Hydrate::$_cache
Doctrine_Hydrate::$_conn
Doctrine_Hydrate::$_expireCache
Doctrine_Hydrate::$_hydrationMode
Doctrine_Hydrate::$_options
Doctrine_Hydrate::$_params
Doctrine_Hydrate::$_sql
Doctrine_Hydrate::$_tableAliases
Doctrine_Hydrate::$_tableAliasSeeds
Doctrine_Hydrate::$_timeToLive
Doctrine_Hydrate::$_view

Inherited From Doctrine_Object

Doctrine_Object::$_null

Inherited From Doctrine_Query_Abstract

Doctrine_Query_Abstract::addFrom()
addFrom adds fields to the FROM part of the query
Doctrine_Query_Abstract::addGroupBy()
addGroupBy adds fields to the GROUP BY part of the query
Doctrine_Query_Abstract::addHaving()
addHaving adds conditions to the HAVING part of the query
Doctrine_Query_Abstract::addOrderBy()
addOrderBy adds fields to the ORDER BY part of the query
Doctrine_Query_Abstract::addSelect()
addSelect adds fields to the SELECT part of the query
Doctrine_Query_Abstract::addWhere()
addWhere adds conditions to the WHERE part of the query
Doctrine_Query_Abstract::delete()
delete sets the query type to DELETE
Doctrine_Query_Abstract::distinct()
distinct Makes the query SELECT DISTINCT.
Doctrine_Query_Abstract::forUpdate()
forUpdate Makes the query SELECT FOR UPDATE.
Doctrine_Query_Abstract::from()
from sets the FROM part of the query
Doctrine_Query_Abstract::groupBy()
groupBy sets the GROUP BY part of the query
Doctrine_Query_Abstract::having()
having sets the HAVING part of the query
Doctrine_Query_Abstract::innerJoin()
innerJoin appends an INNER JOIN to the FROM part of the query
Doctrine_Query_Abstract::leftJoin()
leftJoin appends a LEFT JOIN to the FROM part of the query
Doctrine_Query_Abstract::limit()
limit sets the Query query limit
Doctrine_Query_Abstract::offset()
offset sets the Query query offset
Doctrine_Query_Abstract::orderBy()
orderBy sets the ORDER BY part of the query
Doctrine_Query_Abstract::parseQueryPart()
parseQueryPart parses given DQL query part
Doctrine_Query_Abstract::select()
select sets the SELECT part of the query
Doctrine_Query_Abstract::set()
set sets the SET part of the query
Doctrine_Query_Abstract::update()
update sets the UPDATE part of the query
Doctrine_Query_Abstract::where()
where sets the WHERE part of the query
Doctrine_Query_Abstract::whereIn()
whereIn adds IN condition to the query WHERE part

Inherited From Doctrine_Hydrate

Doctrine_Hydrate::__construct()
constructor
Doctrine_Hydrate::addQueryPart()
addQueryPart adds a query part in the query part array
Doctrine_Hydrate::addTableAlias()
addTableAlias adds an alias for table and associates it with given component alias
Doctrine_Hydrate::applyInheritance()
applyInheritance applies column aggregation inheritance to DQL / SQL query
Doctrine_Hydrate::clear()
clear resets all the variables
Doctrine_Hydrate::convertEnums()
Doctrine_Hydrate::copyAliases()
copyAliases copy aliases from another Hydrate object
Doctrine_Hydrate::createSubquery()
createSubquery creates a subquery
Doctrine_Hydrate::execute()
execute executes the query and populates the data set
Doctrine_Hydrate::expireCache()
expireCache
Doctrine_Hydrate::fetchArray()
fetchArray Convenience method to execute using array fetching as hydration mode.
Doctrine_Hydrate::fetchOne()
fetchOne Convenience method to execute the query and return the first item of the collection.
Doctrine_Hydrate::generateNewTableAlias()
generateNewTableAlias generates a new alias from given table alias
Doctrine_Hydrate::generateTableAlias()
generateTableAlias generates a table alias from given table name and associates it with given component alias
Doctrine_Hydrate::getAliasDeclaration()
getAliasDeclaration get the declaration for given component alias
Doctrine_Hydrate::getAliasMap()
getAliasMap returns the component alias map
Doctrine_Hydrate::getCachedForm()
getCachedForm returns the cached form of this query for given resultSet
Doctrine_Hydrate::getCacheDriver()
getCacheDriver returns the cache driver associated with this object
Doctrine_Hydrate::getComponentAlias()
getComponentAlias get component alias associated with given table alias
Doctrine_Hydrate::getConnection()
getConnection
Doctrine_Hydrate::getParams()
getParams
Doctrine_Hydrate::getQueryPart()
setQueryPart sets a query part in the query part array
Doctrine_Hydrate::getRoot()
getRoot returns the root component for this object
Doctrine_Hydrate::getRootAlias()
getRootAlias returns the alias of the the root component
Doctrine_Hydrate::getRootDeclaration()
getRootDeclaration returns the root declaration
Doctrine_Hydrate::getSql()
getSql return the sql associated with this object
Doctrine_Hydrate::getTableAlias()
getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible
Doctrine_Hydrate::getTableAliases()
getTableAliases returns all table aliases
Doctrine_Hydrate::getTableAliasSeed()
getTableAliasSeed returns the alias seed for given table alias
Doctrine_Hydrate::getType()
getType
Doctrine_Hydrate::getView()
getView returns the view associated with this query object (if any)
Doctrine_Hydrate::hasAliasDeclaration()
hasAliasDeclaration whether or not this object has a declaration for given component alias
Doctrine_Hydrate::hasTableAlias()
hasTableAlias whether or not this object has given tableAlias
Doctrine_Hydrate::isLimitSubqueryUsed()
limitSubqueryUsed whether or not limit subquery was used
Doctrine_Hydrate::parseData2()
parseData parses the data returned by statement object
Doctrine_Hydrate::removeQueryPart()
removeQueryPart removes a query part from the query part array
Doctrine_Hydrate::serialize()
serialize this method is automatically called when this Doctrine_Hydrate is serialized
Doctrine_Hydrate::setAliasMap()
setAliasMap sets the whole component alias map
Doctrine_Hydrate::setCacheLifeSpan()
setCacheLifeSpan
Doctrine_Hydrate::setHydrationMode()
Sets the fetchmode.
Doctrine_Hydrate::setParams()
setParams
Doctrine_Hydrate::setQueryPart()
setQueryPart sets a query part in the query part array
Doctrine_Hydrate::setView()
setView sets a database view this query object uses this method should only be called internally by doctrine
Doctrine_Hydrate::unserialize()
unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized
Doctrine_Hydrate::useCache()
useCache
Doctrine_Hydrate::_execute()
Doctrine_Hydrate::_setLastElement()
_setLastElement
Doctrine_Hydrate::__toString()

Inherited From Doctrine_Object

Doctrine_Object::getNullObject()
getNullObject returns the null object associated with this object
Doctrine_Object::initNullObject()
initNullObject initializes the null object

Inherited From Doctrine_Hydrate

Doctrine_Hydrate::CREATE
Doctrine_Hydrate::DELETE
Doctrine_Hydrate::HYDRATE_ARRAY
Doctrine_Hydrate::HYDRATE_RECORD
Doctrine_Hydrate::INSERT
Doctrine_Hydrate::SELECT
Doctrine_Hydrate::UPDATE

[ Top ]
Property Summary
array   $fields  

[ Top ]
Method Summary
Doctrine_RawSql   addComponent()   addComponent
array   getFields()   getFields returns the fields associated with this parser
string   getQuery()   getQuery builds the sql query from the given query parts
Doctrine_RawSql   parseQuery()   parseQuery parses an sql query and adds the parts to internal array
Doctrine_Query   parseQueryPart()   parseQueryPart parses given query part

[ Top ]
Properties
array   $fields = array() [line 38]
API Tags:
Access:  private


[ Top ]
Methods
addComponent  [line 226]

  Doctrine_RawSql addComponent( string $tableAlias, $path, string $componentName  )

addComponent

Parameters:
string   $tableAlias: 
string   $componentName: 
   $path: 

API Tags:
Access:  public


[ Top ]
getFields  [line 215]

  array getFields( )

getFields returns the fields associated with this parser


API Tags:
Return:  all the fields associated with this parser
Access:  public


[ Top ]
getQuery  [line 130]

  string getQuery( )

getQuery builds the sql query from the given query parts


API Tags:
Return:  the built sql query
Access:  public


[ Top ]
parseQuery  [line 73]

  Doctrine_RawSql parseQuery( string $query  )

parseQuery parses an sql query and adds the parts to internal array

Parameters:
string   $query:  query to be parsed

API Tags:
Return:  this object
Access:  public


[ Top ]
parseQueryPart  [line 50]

  Doctrine_Query parseQueryPart( string $queryPartName, string $queryPart, [boolean $append = false]  )

parseQueryPart parses given query part

Parameters:
string   $queryPartName:  the name of the query part
string   $queryPart:  query part to be parsed
boolean   $append:  whether or not to append the query part to its stack if false is given, this method will overwrite the given query part stack with $queryPart

API Tags:
Return:  this object
Access:  public


Redefinition of:
Doctrine_Query_Abstract::parseQueryPart()
parseQueryPart parses given DQL query part

[ Top ]