Class: Doctrine_Export_Schema

Source Location: /Doctrine/Export/Schema.php

Class Doctrine_Export_Schema

Class Overview

class Doctrine_Export_Schema

Different methods to import a XML schema. The logic behind using two different methods is simple. Some people will like the idea of producing Doctrine_Record objects directly, which is totally fine. But in fast and growing application, table definitions tend to be a little bit more volatile. importArr() can be used to output a table definition in a PHP file. This file can then be stored independantly from the object itself.

Located in /Doctrine/Export/Schema.php [line 39]



		
				Author(s):
		
		
		API Tags:
Abstract:  

Information Tags:
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL

Methods

[ Top ]
Direct descendents
Child Class Description
Doctrine_Export_Schema_Xml class Doctrine_Export_Schema_Xml
Doctrine_Export_Schema_Yml class Doctrine_Export_Schema_Yml

[ Top ]
Method Summary
void   build()   build
void   buildSchema()   buildSchema
void   dump()   dump
void   exportSchema()   exportSchema

[ Top ]
Methods
build  [line 49]

  void build( string $array  )

build

Build the schema string to be dumped to file

Parameters:
string   $array: 

API Tags:
Abstract:  


Redefined in descendants as:

[ Top ]
buildSchema  [line 70]

  void buildSchema( string $directory  )

buildSchema

Build schema array that can be dumped to file

Parameters:
string   $directory: 

API Tags:
Access:  public


[ Top ]
dump  [line 60]

  void dump( string $array, string $schema  )

dump

Dump the array to the schema file

Parameters:
string   $array: 
string   $schema: 

API Tags:
Abstract:  


Redefined in descendants as:

[ Top ]
exportSchema  [line 83]

  void exportSchema( string $schema, string $directory  )

exportSchema

Parameters:
string   $schema: 
string   $directory: 

API Tags:
Access:  public


[ Top ]