OdbcField
final class OdbcField (View source)
Describes one ODBC result column as exposed by the ODBC extension metadata API.
Methods
Initializes this OdbcField with the collaborators and state required by its database contract.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Converts the current database value into the representation required by its consumer.
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.
name
string
name()
Provides this part of the database contract while preserving the object's current state and driver semantics.
type
string
type()
Provides this part of the database contract while preserving the object's current state and driver semantics.
maxLength
int
maxLength()
Provides this part of the database contract while preserving the object's current state and driver semantics.
primaryKey
bool
primaryKey()
Provides this part of the database contract while preserving the object's current state and driver semantics.
default
mixed
default()
Provides this part of the database contract while preserving the object's current state and driver semantics.
toObject
object
toObject()
Converts the current database value into the representation required by its consumer.