PHP Class Horde_Db_Adapter_Mysql_Column, horde

Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_Db_Adapter_Base_Column
Exibir arquivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_hasEmptyStringDefault array
$_originalDefault string

Public Methods

Method Description
__construct ( string $name, string $default, string $sqlType = null, boolean $null = true ) Construct

Protected Methods

Method Description
_isMissingDefaultForgedAsEmptyString ( ) : boolean MySQL misreports NOT NULL column default when none is given.
_setSimplifiedType ( )

Method Details

__construct() public method

Construct
public __construct ( string $name, string $default, string $sqlType = null, boolean $null = true )
$name string
$default string
$sqlType string
$null boolean

_isMissingDefaultForgedAsEmptyString() protected method

We can't detect this for columns which may have a legitimate '' default (string, text, binary) but we can for others (integer, datetime, boolean, and the rest). Test whether the column has default '', is not null, and is not a type allowing default ''.

_setSimplifiedType() protected method

protected _setSimplifiedType ( )

Property Details

$_hasEmptyStringDefault protected_oe property

protected array $_hasEmptyStringDefault
return array

$_originalDefault protected_oe property

protected string $_originalDefault
return string