class Key extends Component

Parses the definition of a key.

Used for parsing CREATE TABLE statement.

Properties

static array $KEY_OPTIONS All key options.
string $name The name of this key.
array $columns Columns.
string $type The type of this key.
OptionsArray $options The options of this key.

Methods

static mixed
parse(Parser $parser, TokensList $list, array $options = array())

No description

static string
build(mixed $component, array $options = array())

No description

string
__toString()

Builds the string representation of a component of this type.

from Component
__construct(string $name = null, array $columns = array(), string $type = null, OptionsArray $options = null)

Constructor.

Details

at line 93
static mixed parse(Parser $parser, TokensList $list, array $options = array())

Parameters

Parser $parser the parser that serves as context
TokensList $list the list of tokens that are being parsed
array $options parameters for parsing

Return Value

mixed

at line 185
static string build(mixed $component, array $options = array())

Parameters

mixed $component the component to be built
array $options parameters for building

Return Value

string

in Component at line 73
string __toString()

Builds the string representation of a component of this type.

Return Value

string

See also

at line 74
__construct(string $name = null, array $columns = array(), string $type = null, OptionsArray $options = null)

Constructor.

Parameters

string $name the name of the key
array $columns the columns covered by this key
string $type the type of this key
OptionsArray $options the options of this key