PHP Class Horde_Db_Adapter_Base_ColumnDefinition, horde

Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_autoincrement
$_base
$_default
$_limit
$_name
$_null
$_precision
$_scale
$_type
$_unsigned

Public Methods

Method Description
__construct ( $base, $name, $type, $limit = null, $precision = null, $scale = null, $unsigned = null, $default = null, $null = null, $autoincrement = null ) Constructor.
__toString ( ) : string
getDefault ( ) : string
getLimit ( ) : integer
getName ( ) : string
getSqlType ( ) : string
getType ( ) : string
isAutoIncrement ( ) : boolean
isNull ( ) : boolean
isUnsigned ( ) : boolean
precision ( ) : integer
scale ( ) : integer
setAutoIncrement ( $autoincrement )
setDefault ( $default )
setLimit ( $limit )
setName ( $name )
setNull ( $null )
setPrecision ( $precision )
setScale ( $scale )
setType ( $type )
setUnsigned ( $unsigned )
toSql ( ) : string

Protected Methods

Method Description
_addColumnOptions ( string $sql, array $options )

Method Details

__construct() public method

Constructor.
public __construct ( $base, $name, $type, $limit = null, $precision = null, $scale = null, $unsigned = null, $default = null, $null = null, $autoincrement = null )

__toString() public method

public __toString ( ) : string
return string

_addColumnOptions() protected method

protected _addColumnOptions ( string $sql, array $options )
$sql string
$options array

getDefault() public method

public getDefault ( ) : string
return string

getLimit() public method

public getLimit ( ) : integer
return integer

getName() public method

public getName ( ) : string
return string

getSqlType() public method

public getSqlType ( ) : string
return string

getType() public method

public getType ( ) : string
return string

isAutoIncrement() public method

public isAutoIncrement ( ) : boolean
return boolean

isNull() public method

public isNull ( ) : boolean
return boolean

isUnsigned() public method

public isUnsigned ( ) : boolean
return boolean

precision() public method

public precision ( ) : integer
return integer

scale() public method

public scale ( ) : integer
return integer

setAutoIncrement() public method

public setAutoIncrement ( $autoincrement )

setDefault() public method

public setDefault ( $default )

setLimit() public method

public setLimit ( $limit )

setName() public method

public setName ( $name )

setNull() public method

public setNull ( $null )

setPrecision() public method

public setPrecision ( $precision )

setScale() public method

public setScale ( $scale )

setType() public method

public setType ( $type )

setUnsigned() public method

public setUnsigned ( $unsigned )

toSql() public method

public toSql ( ) : string
return string

Property Details

$_autoincrement protected_oe property

protected $_autoincrement

$_base protected_oe property

protected $_base

$_default protected_oe property

protected $_default

$_limit protected_oe property

protected $_limit

$_name protected_oe property

protected $_name

$_null protected_oe property

protected $_null

$_precision protected_oe property

protected $_precision

$_scale protected_oe property

protected $_scale

$_type protected_oe property

protected $_type

$_unsigned protected_oe property

protected $_unsigned