Class: Doctrine_Import_Schema_Yml

Source Location: /Doctrine/Import/Schema/Yml.php

Class Doctrine_Import_Schema_Yml

Class Overview

class Doctrine_Import_Schema_Yml

Different methods to import a YML 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/Import/Schema/Yml.php [line 40]

Doctrine_Import_Schema
   |
   --Doctrine_Import_Schema_Yml
Author(s): Information Tags:
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL

Methods

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

Inherited From Doctrine_Import_Schema

Doctrine_Import_Schema::importSchema()
importSchema
Doctrine_Import_Schema::parse()
parse
Doctrine_Import_Schema::parseSchema()
Parse the schema and return it in an array

[ Top ]
Method Summary
void   parse()   parse
array   parseSchema()   parseSchema

[ Top ]
Methods
parse  [line 48]

  void parse( string $schema  )

parse

Parameters:
string   $schema: 

API Tags:
Access:  public


Redefinition of:
Doctrine_Import_Schema::parse()
parse

[ Top ]
parseSchema  [line 66]

  array parseSchema( string $schema  )

parseSchema

A method to parse a Yml Schema and translate it into a property array. The function returns that property array.

Parameters:
string   $schema:  Path to the file containing the XML schema

API Tags:
Access:  public


Redefinition of:
Doctrine_Import_Schema::parseSchema()
Parse the schema and return it in an array

[ Top ]