[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/creole/metadata/ -> ColumnInfo.php (sommaire)

(pas de description)

Poids: 232 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ColumnInfo:: (14 méthodes):
  __construct()
  __sleep()
  getName()
  getType()
  getNativeType()
  getSize()
  getPrecision()
  getScale()
  getDefaultValue()
  isNullable()
  isAutoIncrement()
  getVendorSpecificInfo()
  toString()
  getTable()


Classe: ColumnInfo  - X-Ref

Represents a Column.

__construct(TableInfo$table,$name,$type = null,$nativeType = null,$size = null,$precision=null,$scale = null,$is_nullable = null,$default = null,$is_auto_increment = null,$vendorInfo = array()   X-Ref
Construct a new ColumnInfo object.

param: TableInfo $table The table that owns this column.
param: string $name Column name.
param: int $type Creole type.
param: string $nativeType Native type name.
param: int $size Column length.
param: int $scale Column scale (number of digits after decimal).
param: boolean $is_nullable Whether col is nullable.
param: mixed $default Default value.
param: boolean $is_auto_increment Whether col is of autoIncrement type.

__sleep()   X-Ref
This "magic" method is invoked upon serialize().
Because the Info class hierarchy is recursive, we must handle
the serialization and unserialization of this object.

return: array The class variables that should be serialized (all must be public!).

getName()   X-Ref
Get column name.

return: string

getType()   X-Ref
Get column type.

return: int

getNativeType()   X-Ref
Gets the native type name.

return: string

getSize()   X-Ref
Get column size.

return: int

getPrecision()   X-Ref
Get column precision.

return: int

getScale()   X-Ref
Get column scale.
Scale refers to number of digits after the decimal.  Sometimes this is referred
to as precision, but precision is the total number of digits (i.e. length).

return: int

getDefaultValue()   X-Ref
Get the default value.

return: mixed

isNullable()   X-Ref
Is column nullable?

return: boolean

isAutoIncrement()   X-Ref
Is column of autoincrement type?

return: boolean

getVendorSpecificInfo()   X-Ref
Get vendor specific optional information for this column.

return: array vendorSpecificInfo[]

toString()   X-Ref

return: string

getTable()   X-Ref
Get parent table.

return: TableInfo



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7