eZ Publish  [trunk]
eZDbSchema Class Reference

A factory for schema handlers. More...

List of all members.

Static Public Member Functions

static generateUpgradeFile ($differences)
static instance ($params=false)
 Returns a shared instance of the eZDBSchemaInterface class.
static merge ($schema1, $schema2)
 Merges 2 db schemas, basically appending 2nd on top of 1st.
static read ($filename, $returnArray=false)
static readArray ($filename)
static writeUpgradeFile ($differences, $filename)

Detailed Description

A factory for schema handlers.

Definition at line 18 of file ezdbschema.php.


Member Function Documentation

static eZDbSchema::generateUpgradeFile ( differences) [static]

Definition at line 120 of file ezdbschema.php.

Referenced by writeUpgradeFile().

static eZDbSchema::instance ( params = false) [static]

Returns a shared instance of the eZDBSchemaInterface class.

Parameters:
array | eZDBInterface | false$paramsIf array, following key is needed:
Returns:
eZDBSchemaInterface|false

Definition at line 27 of file ezdbschema.php.

Referenced by eZDataType\importDBDataFromDBAFile(), eZStepCreateSites\initializePackage(), and loadDatabaseSchema().

static eZDbSchema::merge ( schema1,
schema2 
) [static]

Merges 2 db schemas, basically appending 2nd on top of 1st.

Returns:
array the merged schema

Definition at line 148 of file ezdbschema.php.

static eZDbSchema::read ( filename,
returnArray = false 
) [static]
static eZDbSchema::readArray ( filename) [static]

Definition at line 110 of file ezdbschema.php.

static eZDbSchema::writeUpgradeFile ( differences,
filename 
) [static]

Definition at line 129 of file ezdbschema.php.


The documentation for this class was generated from the following file: