PHP Класс Prado\Data\Common\TDbTableColumn

С версии: 3.1
Наследование: extends Prado\TComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( $columnInfo ) Sets the table column meta data.
getAllowNull ( ) : boolean
getColumnId ( ) : string
getColumnIndex ( ) : integer
getColumnName ( ) : string
getColumnSize ( ) : string
getDbType ( ) : string
getDefaultValue ( ) : mixed
getIsExcluded ( ) : boolean
getIsForeignKey ( ) : boolean
getIsPrimaryKey ( ) : boolean
getMaxiumNumericConstraint ( )
getNumericPrecision ( ) : string
getNumericScale ( ) : string
getPHPType ( ) : string Returns the derived PHP primitive type from the db type. Default returns 'string'.
getPdoType ( )
getSequenceName ( )
hasSequence ( ) : boolean

Защищенные методы

Метод Описание
getInfo ( $name, $default = null ) : mixed
setInfo ( $name, $value )

Описание методов

__construct() публичный Метод

Sets the table column meta data.
public __construct ( $columnInfo )

getAllowNull() публичный Метод

public getAllowNull ( ) : boolean
Результат boolean specifies whether value Null is allowed, default is false.

getColumnId() публичный Метод

public getColumnId ( ) : string
Результат string name of the column with quoted identifier.

getColumnIndex() публичный Метод

public getColumnIndex ( ) : integer
Результат integer zero-based ordinal position of the column in the table.

getColumnName() публичный Метод

public getColumnName ( ) : string
Результат string name of the column in the table (identifier quoted).

getColumnSize() публичный Метод

public getColumnSize ( ) : string
Результат string size of the column.

getDbType() публичный Метод

public getDbType ( ) : string
Результат string column type.

getDefaultValue() публичный Метод

public getDefaultValue ( ) : mixed
Результат mixed default column value if column value was null.

getInfo() защищенный Метод

protected getInfo ( $name, $default = null ) : mixed
Результат mixed information array value.

getIsExcluded() публичный Метод

public getIsExcluded ( ) : boolean
Результат boolean whether this column is excluded from insert and update.

getIsForeignKey() публичный Метод

public getIsForeignKey ( ) : boolean
Результат boolean whether this column is a foreign key, default is false.

getIsPrimaryKey() публичный Метод

public getIsPrimaryKey ( ) : boolean
Результат boolean whether this column is a primary key for the table, default is false.

getMaxiumNumericConstraint() публичный Метод

getNumericPrecision() публичный Метод

public getNumericPrecision ( ) : string
Результат string precision of the column data, if the data is numeric.

getNumericScale() публичный Метод

public getNumericScale ( ) : string
Результат string scale of the column data, if the data is numeric.

getPHPType() публичный Метод

Returns the derived PHP primitive type from the db type. Default returns 'string'.
public getPHPType ( ) : string
Результат string derived PHP primitive type from the column db type.

getPdoType() публичный Метод

public getPdoType ( )

getSequenceName() публичный Метод

public getSequenceName ( )

hasSequence() публичный Метод

public hasSequence ( ) : boolean
Результат boolean whether the column is a sequence.

setInfo() защищенный Метод

protected setInfo ( $name, $value )