29 self::FIELD_TYPE_INTEGER => array(
36 self::FIELD_TYPE_FLOAT => array(
39 self::FIELD_TYPE_DATE => array(
42 self::FIELD_TYPE_TIME => array(
45 self::FIELD_TYPE_TIMESTAMP => array(
48 self::FIELD_TYPE_CLOB => array(
56 self::FIELD_TYPE_DATE,
57 self::FIELD_TYPE_TIME,
58 self::FIELD_TYPE_TIMESTAMP
69 foreach ($array as
$key => $value) {
75 $this->{
$key} =
false;
78 $this->{
$key} = $value;
91 $array = (array) $stdClass;
180 $this->fieldtype = $field_type;
270 $this->is_primary = $primary;
349 return in_array($field_name, self::$allowed_attributes[
$type]);
360 return in_array($field_type, self::$date_fields);
An exception for terminatinating execution or to throw for unit testing.
static getAllowedDescriptionFields()
static getAllowedConnectorFields()
loadFromArray($name, array $array)
static isAllowedAttribute($type, $field_name)
const FIELD_TYPE_TIMESTAMP
static isDateFieldType($field_type)
static $allowed_attributes
getAttributesForDescription()
setFieldType($field_type)
loadFromStdClass($name, stdClass $stdClass)
getAttributesForConnector()