Property | Type | Description | |
---|---|---|---|
$_default | |||
$_isNumber | |||
$_isText | |||
$_limit | |||
$_name | |||
$_null | |||
$_precision | |||
$_scale | |||
$_sqlType | |||
$_type | |||
$_unsigned |
Method | 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 |
Method | Description | |
---|---|---|
_extractLimit ( string $sqlType ) : integer | ||
_extractPrecision ( string $sqlType ) : integer | ||
_extractScale ( string $sqlType ) : integer | ||
_extractUnsigned ( string $sqlType ) : integer | ||
_setSimplifiedType ( ) |
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. |
protected _extractLimit ( string $sqlType ) : integer | ||
$sqlType | string | |
return | integer |
protected _extractPrecision ( string $sqlType ) : integer | ||
$sqlType | string | |
return | integer |
protected _extractScale ( string $sqlType ) : integer | ||
$sqlType | string | |
return | integer |
protected _extractUnsigned ( string $sqlType ) : integer | ||
$sqlType | string | |
return | integer |
public binaryToString ( $value ) : string | ||
return | string |
public stringToDate ( string $string ) : Horde_Date | ||
$string | string | |
return | Horde_Date |
public stringToDummyTime ( $value ) : Horde_Date | ||
return | Horde_Date |
public stringToTime ( string $string ) : Horde_Date | ||
$string | string | |
return | Horde_Date |
public typeCast ( $value ) |
public valueToBoolean ( mixed $value ) : boolean | ||
$value | mixed | |
return | boolean |
public valueToDecimal ( mixed $value ) : decimal | ||
$value | mixed | |
return | decimal |