Path

ez components / documentation / api reference / latest / databaseschema


eZ Components latest

DatabaseSchema: ezcDbSchemaTable

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDbSchemaTable

A container to store a table definition in. [source]

Parents

ezcBaseStruct
   |
   --ezcDbSchemaTable

Member Variables

public array(string=>ezcDbSchemaField) $fields
A list of all the fields in this table.

The array is indexed with the field name.
public array(string=>ezcDbSchemaIndex) $indexes
A list of all the indexes on this table.

The array is indexed with the index name, where the index with the name 'primary' is a special one describing the primairy key.

Method Summary

public ezcDbSchemaTable __construct( $fields, [$indexes = array()] )
Constructs an ezcDbSchemaTable object.
public static void __set_state( $array )

Methods

__construct

ezcDbSchemaTable __construct( array(string=>ezcDbSchemaField) $fields, [array(string=>ezcDbSchemaIndex) $indexes = array()] )
Constructs an ezcDbSchemaTable object.

Parameters

Name Type Description
$fields array(string=>ezcDbSchemaField)  
$indexes array(string=>ezcDbSchemaIndex)  

__set_state

void __set_state( $array )

Parameters

Name Type Description
$array array  

Last updated: Mon, 21 Dec 2009