PHP Class Horde_Db_Adapter_Base_Column, horde

Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_default
$_isNumber
$_isText
$_limit
$_name
$_null
$_precision
$_scale
$_sqlType
$_type
$_unsigned

Méthodes publiques

Méthode Description
__construct ( string $name, string $default, string $sqlType = null, boolean $null = true ) Constructor.
binaryToString ( $value ) : string Used to convert from BLOBs to Strings
extractDefault ( $default )
getDefault ( ) : string
getLimit ( ) : integer
getName ( ) : string
getSqlType ( ) : string
getType ( ) : string
isNull ( ) : boolean
isNumber ( ) : boolean
isText ( ) : boolean
isUnsigned ( ) : boolean
precision ( ) : integer
scale ( ) : integer
stringToDate ( string $string ) : Horde_Date
stringToDummyTime ( $value ) : Horde_Date
stringToTime ( string $string ) : Horde_Date
typeCast ( $value ) Casts value (which is a String) to an appropriate instance.
valueToBoolean ( mixed $value ) : boolean
valueToDecimal ( mixed $value ) : decimal

Méthodes protégées

Méthode Description
_extractLimit ( string $sqlType ) : integer
_extractPrecision ( string $sqlType ) : integer
_extractScale ( string $sqlType ) : integer
_extractUnsigned ( string $sqlType ) : integer
_setSimplifiedType ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( string $name, string $default, string $sqlType = null, boolean $null = true )
$name string The column's name, such as "supplier_id" in "supplier_id int(11)".
$default string The type-casted default value, such as "new" in "sales_stage varchar(20) default 'new'".
$sqlType string Used to extract the column's type, length and signed status, if necessary. For example "varchar" and "60" in "company_name varchar(60)" or "unsigned => true" in "int(10) UNSIGNED".
$null boolean Whether this column allows NULL values.

_extractLimit() protected méthode

protected _extractLimit ( string $sqlType ) : integer
$sqlType string
Résultat integer

_extractPrecision() protected méthode

protected _extractPrecision ( string $sqlType ) : integer
$sqlType string
Résultat integer

_extractScale() protected méthode

protected _extractScale ( string $sqlType ) : integer
$sqlType string
Résultat integer

_extractUnsigned() protected méthode

protected _extractUnsigned ( string $sqlType ) : integer
$sqlType string
Résultat integer

_setSimplifiedType() protected méthode

protected _setSimplifiedType ( )

binaryToString() public méthode

Used to convert from BLOBs to Strings
public binaryToString ( $value ) : string
Résultat string

extractDefault() public méthode

public extractDefault ( $default )

getDefault() public méthode

public getDefault ( ) : string
Résultat string

getLimit() public méthode

public getLimit ( ) : integer
Résultat integer

getName() public méthode

public getName ( ) : string
Résultat string

getSqlType() public méthode

public getSqlType ( ) : string
Résultat string

getType() public méthode

public getType ( ) : string
Résultat string

isNull() public méthode

public isNull ( ) : boolean
Résultat boolean

isNumber() public méthode

public isNumber ( ) : boolean
Résultat boolean

isText() public méthode

public isText ( ) : boolean
Résultat boolean

isUnsigned() public méthode

public isUnsigned ( ) : boolean
Résultat boolean

precision() public méthode

public precision ( ) : integer
Résultat integer

scale() public méthode

public scale ( ) : integer
Résultat integer

stringToDate() public méthode

public stringToDate ( string $string ) : Horde_Date
$string string
Résultat Horde_Date

stringToDummyTime() public méthode

public stringToDummyTime ( $value ) : Horde_Date
Résultat Horde_Date

stringToTime() public méthode

public stringToTime ( string $string ) : Horde_Date
$string string
Résultat Horde_Date

typeCast() public méthode

Casts value (which is a String) to an appropriate instance.
public typeCast ( $value )

valueToBoolean() public méthode

public valueToBoolean ( mixed $value ) : boolean
$value mixed
Résultat boolean

valueToDecimal() public méthode

public valueToDecimal ( mixed $value ) : decimal
$value mixed
Résultat decimal

Property Details

$_default protected_oe property

protected $_default

$_isNumber protected_oe property

protected $_isNumber

$_isText protected_oe property

protected $_isText

$_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

$_sqlType protected_oe property

protected $_sqlType

$_type protected_oe property

protected $_type

$_unsigned protected_oe property

protected $_unsigned