interface IConstants (View source)

This interface defines a set of constants to be used for database connections.

Implementing classes should provide specific values for these constants.

Methods

static mixed
getAttribute(mixed $name)

Retrieves the value of a specific attribute by name or constant.

static void
setAttribute(mixed $name, mixed $value)

Sets the value of a specific attribute by name or constant.

Details

static mixed getAttribute(mixed $name)

Retrieves the value of a specific attribute by name or constant.

Parameters

mixed $name

The name of the attribute or the constant associated with it.

Return Value

mixed

The value of the attribute if found; null otherwise.

static void setAttribute(mixed $name, mixed $value)

Sets the value of a specific attribute by name or constant.

Parameters

mixed $name

The name of the attribute or the constant associated with it. If null, the value is appended.

mixed $value

The value to set for the specified attribute.

Return Value

void