|
Doctrine 1.2.4
|
Public Member Functions | |
| buildSchema ($schema, $format) | |
| getOption ($name) | |
| getOptions () | |
| importSchema ($schema, $format= 'yml', $directory=null, $models=array()) | |
| parseSchema ($schema, $type) | |
| setOption ($name, $value) | |
| setOptions ($options) | |
Static Public Member Functions | |
| static | getGlobalDefinitionKeys () |
Protected Member Functions | |
| _autoCompleteOppositeRelations () | |
| _buildRelationships ($array) | |
| _buildUniqueRelationKey ($relation) | |
| _findBaseSuperClass ($array, $class) | |
| _fixDuplicateRelations () | |
| _processInheritance ($array) | |
| _validateSchemaElement ($name, $element, $path) | |
Definition at line 35 of file Schema.php.
|
protected |
fixRelationships
Loop through all relationships building the opposite ends of each relationship and make sure no duplicate relations exist
Definition at line 659 of file Schema.php.
|
protected |
buildRelationships
Loop through an array of schema information and build all the necessary relationship information Will attempt to auto complete relationships and simplify the amount of information required for defining a relationship
| string | $array |
Definition at line 564 of file Schema.php.
|
protected |
_buildUniqueRelationKey
Build a unique key to identify a relationship by Md5 hash of all the relationship parameters
| string | $relation |
Definition at line 737 of file Schema.php.
|
protected |
Find the base super class for this inheritance child. We need to move all levels of children to the top most parent.
| array | $array | Array of schema information |
Definition at line 545 of file Schema.php.
|
protected |
_fixDuplicateRelations
Ensure the relations for each class are unique and that no duplicated relations exist from the auto generated relations and the user explicitely defining the opposite end
Definition at line 706 of file Schema.php.
|
protected |
_processInheritance
Perform some processing on inheritance. Sets the default type and sets some default values for certain types
| string | $array |
Definition at line 458 of file Schema.php.
|
protected |
_validateSchemaElement
| string | $name | |
| string | $value |
Definition at line 749 of file Schema.php.
| Doctrine_Import_Schema::buildSchema | ( | $schema, | |
| $format | |||
| ) |
buildSchema
Loop throug directories of schema files and parse them all in to one complete array of schema information
| string | $schema | Array of schema files or single schema file. Array of directories with schema files or single directory |
| string | $format | Format of the files we are parsing and building from |
Definition at line 224 of file Schema.php.
|
static |
Returns an array of definition keys that can be applied at the global level.
Definition at line 160 of file Schema.php.
| Doctrine_Import_Schema::getOption | ( | $name | ) |
getOption
| string | $name |
Definition at line 171 of file Schema.php.
| Doctrine_Import_Schema::getOptions | ( | ) |
| Doctrine_Import_Schema::importSchema | ( | $schema, | |
$format = 'yml', |
|||
$directory = null, |
|||
$models = array() |
|||
| ) |
importSchema
A method to import a Schema and translate it into a Doctrine_Record object
| string | $schema | The file containing the XML schema |
| string | $format | Format of the schema file |
| string | $directory | The directory where the Doctrine_Record class will be written |
| array | $models | Optional array of models to import |
Definition at line 267 of file Schema.php.
| Doctrine_Import_Schema::parseSchema | ( | $schema, | |
| $type | |||
| ) |
parseSchema
A method to parse a Schema and translate it into a property array. The function returns that property array.
| string | $schema | Path to the file containing the schema |
| string | $type | Format type of the schema we are parsing |
Definition at line 301 of file Schema.php.
| Doctrine_Import_Schema::setOption | ( | $name, | |
| $value | |||
| ) |
setOption
| string | $name | |
| string | $value |
Definition at line 195 of file Schema.php.
| Doctrine_Import_Schema::setOptions | ( | $options | ) |
setOptions
| string | $options |
Definition at line 208 of file Schema.php.