Path

ez components / documentation / api reference / latest / databaseschema


eZ Components latest

DatabaseSchema: ezcDbSchemaIndex

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

Class: ezcDbSchemaIndex

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

Parents

ezcBaseStruct
   |
   --ezcDbSchemaIndex

Member Variables

public array(string=>ezcDbSchemaIndexField) $indexFields
The fields that make up this index

The array is indexed with the name of the field.
public bool $primary
Whether this is the primary index for a table.
public bool $unique
Whether entries in this index need to be unique.

Method Summary

public ezcDbSchemaIndex __construct( $indexFields, [$primary = false], [$unique = true] )
Constructs an ezcDbSchemaIndex object.
public static void __set_state( $array )

Methods

__construct

ezcDbSchemaIndex __construct( array(string=>ezcDbSchemaIndexField) $indexFields, [bool $primary = false], [bool $unique = true] )
Constructs an ezcDbSchemaIndex object.

Parameters

Name Type Description
$indexFields array(string=>ezcDbSchemaIndexField)  
$primary bool  
$unique bool  

__set_state

void __set_state( $array )

Parameters

Name Type Description
$array array  

Last updated: Mon, 21 Dec 2009