MediaWiki  REL1_19
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 16 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 30 of file DatabaseIbm_db2.php.

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

Referenced by DatabaseIbm_db2\fieldInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

Can column be null?

Returns:
bool true or false

Implements Field.

Definition at line 78 of file DatabaseIbm_db2.php.

How much can you fit in the column per row?

Returns:
int length

Definition at line 83 of file DatabaseIbm_db2.php.

Get column name.

Returns:
string column name

Implements Field.

Definition at line 63 of file DatabaseIbm_db2.php.

References name().

Referenced by fromText(), and name().

Here is the call graph for this function:

Here is the caller graph for this function:

Get table name.

Returns:
string table name

Implements Field.

Definition at line 68 of file DatabaseIbm_db2.php.

Get column type.

Returns:
string column type

Implements Field.

Definition at line 73 of file DatabaseIbm_db2.php.

References type().

Referenced by type().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

IBM_DB2Field::$max_length = 0 [private]

Definition at line 21 of file DatabaseIbm_db2.php.

IBM_DB2Field::$name = '' [private]

Definition at line 17 of file DatabaseIbm_db2.php.

IBM_DB2Field::$nullable = false [private]

Definition at line 20 of file DatabaseIbm_db2.php.

IBM_DB2Field::$tablename = '' [private]

Definition at line 18 of file DatabaseIbm_db2.php.

IBM_DB2Field::$type = '' [private]

Definition at line 19 of file DatabaseIbm_db2.php.


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