Class: Doctrine_View

Source Location: /Doctrine/View.php

Class Doctrine_View

Class Overview

Doctrine_View

this class represents a database view

Located in /Doctrine/View.php [line 34]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Constant Summary
CREATE   SQL CREATE constant
DROP   SQL DROP constant
SELECT   SQL SELECT constant

[ Top ]
Property Summary
Doctrine_Connection   $conn  
string   $name  
Doctrine_Query   $query  

[ Top ]
Method Summary
Doctrine_View   __construct()   constructor
void   create()   create creates this view
void   drop()   drop drops this view from the database
Doctrine_Collection   execute()   execute executes the view returns a collection of Doctrine_Record objects
Doctrine_Connection   getConnection()   getConnection returns the connection object
string   getName()   getName returns the name of this view
Doctrine_Query   getQuery()   getQuery returns the associated query object
string   getSelectSql()   getSelectSql returns the select sql for this view

[ Top ]
Properties
Doctrine_Connection   $conn [line 60]
API Tags:
Access:  protected


[ Top ]
string   $name [line 52]
API Tags:
Access:  protected


[ Top ]
Doctrine_Query   $query [line 56]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 67]

  Doctrine_View __construct( Doctrine_Query $query, $viewName  )

constructor

Parameters:
Doctrine_Query   $query: 
   $viewName: 

API Tags:
Access:  public


[ Top ]
create  [line 111]

  void create( )

create creates this view


API Tags:
Access:  public

Information Tags:
Throws:  Doctrine_View_Exception

[ Top ]
drop  [line 127]

  void drop( )

drop drops this view from the database


API Tags:
Access:  public

Information Tags:
Throws:  Doctrine_View_Exception

[ Top ]
execute  [line 142]

  Doctrine_Collection execute( )

execute executes the view returns a collection of Doctrine_Record objects


API Tags:
Access:  public


[ Top ]
getConnection  [line 100]

  Doctrine_Connection getConnection( )

getConnection returns the connection object


API Tags:
Access:  public


[ Top ]
getName  [line 90]

  string getName( )

getName returns the name of this view


API Tags:
Access:  public


[ Top ]
getQuery  [line 80]

  Doctrine_Query getQuery( )

getQuery returns the associated query object


API Tags:
Access:  public


[ Top ]
getSelectSql  [line 152]

  string getSelectSql( )

getSelectSql returns the select sql for this view


API Tags:
Access:  public


[ Top ]
Constants
CREATE = 'CREATE VIEW %s AS %s' [line 43]

SQL CREATE constant


[ Top ]
DROP = 'DROP VIEW %s' [line 39]

SQL DROP constant


[ Top ]
SELECT = 'SELECT * FROM %s' [line 47]

SQL SELECT constant


[ Top ]