Class

eZDBSchemaInterface

class eZDBSchemaInterface

Properties

$DBInstance
$Schema
$Data

Methods

__construct(array $params)

Constructor

schema($params = array())

data($schema = false, $tableNameList = false, $params = array())

validate()

fetchTableData($tableInfo, $offset = false, $limit = false)

writeUpgradeFile($differences, $filename, $params = array())

writeSQLSchemaFile($filename, $params = array())

writeSerializedSchemaFile($filename, $params = array())

writeArraySchemaFile($filename, $params = array())

insertSchema($params = array())

generateDataFile($schema, $data, $params)

generateSchemaFile($schema, $params = array())

generateUpgradeFile($differences, $params = array())

generateTableSQLList($tableName, $table, $params, $separateTypes)

generateTableSchema($tableName, $table, $params)

generateTableInsert($tableName, $tableDef, $dataEntries, $params)

generateTableInsertSQLList($tableName, $tableDef, $dataEntries, $params, $withClosure = true)

generateDataValueTextSQL($fieldDef, $value)

escapeSQLString($value)

generateAlterFieldSql($table_name, $field_name, $def, $params)

generateAddFieldSql($table_name, $field_name, $def, $params)

generateDropFieldSql($table_name, $field_name, $params)

appendSQLComments($def, $sql)

isMultiInsertSupported()

schemaType()

schemaName()

loadSchemaTransformationRules($schemaType)

transformSchema($schema, $toLocal)

transformData($data, $toLocal)

Details

at line 68
public __construct(array $params)

Constructor

Parameters

array $params

at line 88
public schema($params = array())

Parameters

$params

at line 107
public data($schema = false, $tableNameList = false, $params = array())

Parameters

$schema
$tableNameList
$params

at line 159
public validate()

at line 179
public fetchTableData($tableInfo, $offset = false, $limit = false)

Parameters

$tableInfo
$offset
$limit

at line 217
public writeUpgradeFile($differences, $filename, $params = array())

Parameters

$differences
$filename
$params

at line 243
public writeSQLSchemaFile($filename, $params = array())

Parameters

$filename
$params

at line 283
public writeSerializedSchemaFile($filename, $params = array())

Parameters

$filename
$params

at line 323
public writeArraySchemaFile($filename, $params = array())

Parameters

$filename
$params

at line 380
public insertSchema($params = array())

Parameters

$params

at line 466
public generateDataFile($schema, $data, $params)

Parameters

$schema
$data
$params

at line 497
public generateSchemaFile($schema, $params = array())

Parameters

$schema
$params

at line 520
public generateUpgradeFile($differences, $params = array())

Parameters

$differences
$params

at line 635
public generateTableSQLList($tableName, $table, $params, $separateTypes)

Parameters

$tableName
$table
$params
$separateTypes

at line 651
public generateTableSchema($tableName, $table, $params)

Parameters

$tableName
$table
$params

at line 661
public generateTableInsert($tableName, $tableDef, $dataEntries, $params)

Parameters

$tableName
$tableDef
$dataEntries
$params

at line 669
public generateTableInsertSQLList($tableName, $tableDef, $dataEntries, $params, $withClosure = true)

Parameters

$tableName
$tableDef
$dataEntries
$params
$withClosure

at line 792
public generateDataValueTextSQL($fieldDef, $value)

Parameters

$fieldDef
$value

at line 823
public escapeSQLString($value)

Parameters

$value

at line 832
public generateAlterFieldSql($table_name, $field_name, $def, $params)

Parameters

$table_name
$field_name
$def
$params

at line 840
public generateAddFieldSql($table_name, $field_name, $def, $params)

Parameters

$table_name
$field_name
$def
$params

at line 847
public generateDropFieldSql($table_name, $field_name, $params)

Parameters

$table_name
$field_name
$params

at line 858
public appendSQLComments($def, $sql)

Parameters

$def
$sql

at line 882
public isMultiInsertSupported()

at line 894
public schemaType()

at line 905
public schemaName()

at line 914
public loadSchemaTransformationRules($schemaType)

Parameters

$schemaType

at line 1046
public transformSchema($schema, $toLocal)

Parameters

$schema
$toLocal

at line 1317
public transformData($data, $toLocal)

Parameters

$data
$toLocal