eZPublish  4.7
eZDbSchema Class Reference

A factory for schema handlers. More...

Static Public Member Functions

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

Detailed Description

A factory for schema handlers.

Member Function Documentation

static eZDbSchema::generateUpgradeFile (   $differences)
static

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

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
static eZDbSchema::read (   $filename,
  $returnArray = false 
)
static
static eZDbSchema::readArray (   $filename)
static
static eZDbSchema::writeUpgradeFile (   $differences,
  $filename 
)
static

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