eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZMysqlSchema

class eZMysqlSchema extends eZDBSchemaInterface

Properties

$DBInstance
$Schema
$Data

Methods

eZDBSchemaInterface($params)

from eZDBSchemaInterface
schema($params = array())

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

from eZDBSchemaInterface
validate()

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

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

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

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

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

from eZDBSchemaInterface
insertSchema($params = array())

from eZDBSchemaInterface
generateDataFile($schema, $data, $params)

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

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

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

generateTableSchema($tableName, $table, $params)

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

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

from eZDBSchemaInterface
generateDataValueTextSQL($fieldDef, $value)

from eZDBSchemaInterface
escapeSQLString($value)

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

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

generateDropFieldSql($table_name, $field_name, $params)

from eZDBSchemaInterface
appendSQLComments($def, $sql)

from eZDBSchemaInterface
isMultiInsertSupported()

schemaType()

schemaName()

loadSchemaTransformationRules($schemaType)

from eZDBSchemaInterface
transformSchema($schema, $toLocal)

from eZDBSchemaInterface
transformData($data, $toLocal)

from eZDBSchemaInterface
eZMysqlSchema($params)

fetchTableFields($table, $params)

fetchTableIndexes($table, $params)

parseType($type_info, $length_info)

generateAddIndexSql($table_name, $index_name, $def, $params, $isEmbedded = false)

generateDropIndexSql($table_name, $index_name, $def, $params)

generateFieldDef($field_name, $def, $skip_primary, $params = null)

generateTableSQL($tableName, $tableDef, $params, $asArray, $separateTypes = false)

generateTableOption($tableName, $tableDef, $optionType, $optionValue, $params)

tableCharsetName($charset)

tableStorageTypeName($type)

generateDropTable($table, $params)

Details

in eZDBSchemaInterface at line 68
public eZDBSchemaInterface($params)

Parameters

$params

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

Parameters

$params

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

Parameters

$schema
$tableNameList
$params

in eZDBSchemaInterface at line 159
public validate()

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

Parameters

$tableInfo
$offset
$limit

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

Parameters

$differences
$filename
$params

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

Parameters

$filename
$params

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

Parameters

$filename
$params

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

Parameters

$filename
$params

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

Parameters

$params

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

Parameters

$schema
$data
$params

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

Parameters

$schema
$params

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

Parameters

$differences
$params

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

Parameters

$tableName
$table
$params
$separateTypes

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

Parameters

$tableName
$table
$params

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

Parameters

$tableName
$tableDef
$dataEntries
$params

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

Parameters

$tableName
$tableDef
$dataEntries
$params
$withClosure

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

Parameters

$fieldDef
$value

at line 662
public escapeSQLString($value)

Parameters

$value

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

Parameters

$table_name
$field_name
$def
$params

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

Parameters

$table_name
$field_name
$def
$params

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

Parameters

$table_name
$field_name
$params

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

Parameters

$def
$sql

at line 649
public isMultiInsertSupported()

at line 672
public schemaType()

at line 677
public schemaName()

in eZDBSchemaInterface at line 914
public loadSchemaTransformationRules($schemaType)

Parameters

$schemaType

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

Parameters

$schema
$toLocal

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

Parameters

$data
$toLocal

at line 26
public eZMysqlSchema($params)

Parameters

$params

at line 75
public fetchTableFields($table, $params)

Parameters

$table
$params

at line 177
public fetchTableIndexes($table, $params)

Parameters

$table
$params

at line 225
public parseType($type_info, $length_info)

Parameters

$type_info
$length_info

at line 240
public generateAddIndexSql($table_name, $index_name, $def, $params, $isEmbedded = false)

Parameters

$table_name
$index_name
$def
$params
$isEmbedded

at line 340
public generateDropIndexSql($table_name, $index_name, $def, $params)

Parameters

$table_name
$index_name
$def
$params

at line 359
public generateFieldDef($field_name, $def, $skip_primary, $params = null)

Parameters

$field_name
$def
$skip_primary
$params

at line 460
public generateTableSQL($tableName, $tableDef, $params, $asArray, $separateTypes = false)

Parameters

$tableName
$tableDef
$params
$asArray
$separateTypes

at line 567
public generateTableOption($tableName, $tableDef, $optionType, $optionValue, $params)

Parameters

$tableName
$tableDef
$optionType
$optionValue
$params

at line 583
public tableCharsetName($charset)

Parameters

$charset

at line 613
public tableStorageTypeName($type)

Parameters

$type

at line 639
public generateDropTable($table, $params)

Parameters

$table
$params