MediaWiki  REL1_20
IBM_DB2Field Class Reference

This represents a column in a DB2 database. More...

Inheritance diagram for IBM_DB2Field:
Collaboration diagram for IBM_DB2Field:

List of all members.

Public Member Functions

 isNullable ()
 Can column be null?
 maxLength ()
 How much can you fit in the column per row?
 name ()
 Get column name.
 tableName ()
 Get table name.
 type ()
 Get column type.

Static Public Member Functions

static fromText ($db, $table, $field)
 Builder method for the class.

Private Attributes

 $max_length = 0
 $name = ''
 $nullable = false
 $tablename = ''
 $type = ''

Detailed Description

This represents a column in a DB2 database.

Definition at line 31 of file DatabaseIbm_db2.php.


Member Function Documentation

static IBM_DB2Field::fromText ( db,
table,
field 
) [static]

Builder method for the class.

Parameters:
$dbDatabaseIbm_db2: Database interface
$tableString: table name
$fieldString: column name
Returns:
IBM_DB2Field

Definition at line 45 of file DatabaseIbm_db2.php.

References $n, $res, and name().

Referenced by DatabaseIbm_db2\fieldInfo().

Can column be null?

Returns:
bool true or false

Implements Field.

Definition at line 93 of file DatabaseIbm_db2.php.

How much can you fit in the column per row?

Returns:
int length

Definition at line 98 of file DatabaseIbm_db2.php.

Get column name.

Returns:
string column name

Implements Field.

Definition at line 78 of file DatabaseIbm_db2.php.

References name().

Referenced by fromText(), and name().

Get table name.

Returns:
string table name

Implements Field.

Definition at line 83 of file DatabaseIbm_db2.php.

Get column type.

Returns:
string column type

Implements Field.

Definition at line 88 of file DatabaseIbm_db2.php.

References type().

Referenced by type().


Member Data Documentation

IBM_DB2Field::$max_length = 0 [private]

Definition at line 36 of file DatabaseIbm_db2.php.

IBM_DB2Field::$name = '' [private]

Definition at line 32 of file DatabaseIbm_db2.php.

IBM_DB2Field::$nullable = false [private]

Definition at line 35 of file DatabaseIbm_db2.php.

IBM_DB2Field::$tablename = '' [private]

Definition at line 33 of file DatabaseIbm_db2.php.

IBM_DB2Field::$type = '' [private]

Definition at line 34 of file DatabaseIbm_db2.php.


The documentation for this class was generated from the following file: