final class OdbcField (View source)

Describes one ODBC result column as exposed by the ODBC extension metadata API.

Methods

__construct(string $name, string $type, int $maxLength, bool $primaryKey = false, mixed $default = null)

Initializes this OdbcField with the collaborators and state required by its database contract.

string
name()

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
string
type()

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
int

Provides this part of the database contract while preserving the object's current state and driver semantics.

int
bool

Provides this part of the database contract while preserving the object's current state and driver semantics.

bool
mixed

Provides this part of the database contract while preserving the object's current state and driver semantics.

mixed
object

Converts the current database value into the representation required by its consumer.

object

Details

__construct

__construct(string $name, string $type, int $maxLength, bool $primaryKey = false, mixed $default = null)

Initializes this OdbcField with the collaborators and state required by its database contract.

Parameters

string $name
string $type
int $maxLength
bool $primaryKey
mixed $default

name

string name()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

string

type

string type()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

string

maxLength

int maxLength()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

int

primaryKey

bool primaryKey()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

bool

default

mixed default()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

mixed

toObject

object toObject()

Converts the current database value into the representation required by its consumer.

Return Value

object