A container to store a table index in.
Source for this file: /DatabaseSchema/src/structs/index.php
ezcBaseStruct | --ezcDbSchemaIndex
Version: | //autogentag// |
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. |
public static void |
__set_state(
$array
)
|
public ezcDbSchemaIndex |
__construct(
$indexFields
, [ $primary
= false] , [ $unique
= true] )
Constructs an ezcDbSchemaIndex object. |
Name | Type | Description |
---|---|---|
$array |
array |
Constructs an ezcDbSchemaIndex object.
Name | Type | Description |
---|---|---|
$indexFields |
array(string=>ezcDbSchemaIndexField) | |
$primary |
bool | |
$unique |
bool |