Class: Doctrine_Import

Source Location: /Doctrine/Import.php

Class Doctrine_Import

Class Overview

class Doctrine_Import Main responsible of performing import operation. Delegates database schema reading to a reader object and passes the result to a builder object which builds a Doctrine data model.

Located in /Doctrine/Import.php [line 37]

Doctrine_Connection_Module
   |
   --Doctrine_Import
Author(s): Information Tags:
Version:  $Revision: 2255 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

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

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::$conn
Doctrine_Connection_Module::$moduleName

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::__construct()
Doctrine_Connection_Module::getConnection()
getConnection returns the connection object this module uses
Doctrine_Connection_Module::getModuleName()
getModuleName returns the name of this module

[ Top ]
Property Summary
mixed   $sql  

[ Top ]
Method Summary
array   importSchema()   importSchema
array   listDatabases()   lists all databases
array   listFunctions()   lists all availible database functions
array   listSequences()   lists all database sequences
array   listTableColumns()   lists table constraints
array   listTableConstraints()   lists table constraints
array   listTableIndexes()   lists table constraints
array   listTables()   lists tables
array   listTableTriggers()   lists table triggers
array   listTableViews()   lists table views
array   listTriggers()   lists all database triggers
array   listUsers()   lists database users
array   listViews()   lists database views

[ Top ]
Properties
mixed   $sql = array() [line 39]
API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
Methods
importSchema  [line 186]

  array importSchema( string $directory, [ $databases = array()]  )

importSchema

method for importing existing schema to Doctrine_Record classes

Parameters:
string   $directory: 
array   $databases: 

API Tags:
Return:  the names of the imported classes
Access:  public


[ Top ]
listDatabases  [line 45]

  array listDatabases( )

lists all databases


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listFunctions  [line 58]

  array listFunctions( )

lists all availible database functions


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listSequences  [line 82]

  array listSequences( [string|null $database = null]  )

lists all database sequences

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTableColumns  [line 106]

  array listTableColumns( string $table  )

lists table constraints

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTableConstraints  [line 96]

  array listTableConstraints( string $table  )

lists table constraints

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTableIndexes  [line 116]

  array listTableIndexes( string $table  )

lists table constraints

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTables  [line 126]

  array listTables( [string|null $database = null]  )

lists tables

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTableTriggers  [line 136]

  array listTableTriggers( string $table  )

lists table triggers

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTableViews  [line 146]

  array listTableViews( string $table  )

lists table views

Parameters:
string   $table:  database table name

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listTriggers  [line 72]

  array listTriggers( [string|null $database = null]  )

lists all database triggers

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listUsers  [line 155]

  array listUsers( )

lists database users


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
listViews  [line 169]

  array listViews( [string|null $database = null]  )

lists database views

Parameters:
string|null   $database: 

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]