IBM_DB2Field Class Reference
[Database]

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

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

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


Detailed Description

This represents a column in a DB2 database.

Definition at line 15 of file DatabaseIbm_db2.php.


Member Function Documentation

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

Builder method for the class.

Parameters:
$db DatabaseIbm_db2: Database interface
$table String: table name
$field String: column name
Returns:
IBM_DB2Field

Definition at line 29 of file DatabaseIbm_db2.php.

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

Referenced by DatabaseIbm_db2::fieldInfo().

IBM_DB2Field::maxLength (  ) 

How much can you fit in the column per row?

Returns:
int length

Definition at line 78 of file DatabaseIbm_db2.php.

IBM_DB2Field::name (  ) 

Get column name.

Returns:
string column name

Definition at line 58 of file DatabaseIbm_db2.php.

Referenced by fromText().

IBM_DB2Field::nullable (  ) 

Can column be null?

Returns:
bool true or false

Definition at line 73 of file DatabaseIbm_db2.php.

IBM_DB2Field::tableName (  ) 

Get table name.

Returns:
string table name

Definition at line 63 of file DatabaseIbm_db2.php.

IBM_DB2Field::type (  ) 

Get column type.

Returns:
string column type

Definition at line 68 of file DatabaseIbm_db2.php.


Member Data Documentation

IBM_DB2Field::$max_length = 0 [private]

Definition at line 20 of file DatabaseIbm_db2.php.

IBM_DB2Field::$name = '' [private]

Definition at line 16 of file DatabaseIbm_db2.php.

IBM_DB2Field::$nullable = false [private]

Definition at line 19 of file DatabaseIbm_db2.php.

IBM_DB2Field::$tablename = '' [private]

Definition at line 17 of file DatabaseIbm_db2.php.

IBM_DB2Field::$type = '' [private]

Definition at line 18 of file DatabaseIbm_db2.php.


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

Generated on Sat Apr 30 22:57:39 2011 for MediaWiki by  doxygen 1.5.9