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
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_hasEmptyStringDefault array
$_originalDefault string

Méthodes publiques

Méthode Description
__construct ( string $name, string $default, string $sqlType = null, boolean $null = true ) Construct

Méthodes protégées

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

Method Details

__construct() public méthode

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

_isMissingDefaultForgedAsEmptyString() protected méthode

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 méthode

protected _setSimplifiedType ( )

Property Details

$_hasEmptyStringDefault protected_oe property

protected array $_hasEmptyStringDefault
Résultat array

$_originalDefault protected_oe property

protected string $_originalDefault
Résultat string