31 self::FIELD_TYPE_TEXT => array(
36 self::FIELD_TYPE_INTEGER => array(
42 self::FIELD_TYPE_FLOAT => array(
45 self::FIELD_TYPE_DATE => array(
48 self::FIELD_TYPE_TIME => array(
51 self::FIELD_TYPE_TIMESTAMP => array(
54 self::FIELD_TYPE_CLOB => array(
59 self::FIELD_TYPE_DATE,
60 self::FIELD_TYPE_TIME,
61 self::FIELD_TYPE_TIMESTAMP
67 foreach ($array as
$key => $value) {
73 $this->{
$key} =
false;
76 $this->{
$key} = $value;
84 $array = (array) $stdClass;
95 if (isset($this->{$field_name}) && $this->{$field_name} && self::isAllowedAttribute(
113 if ($this->{$field_name} && self::isAllowedAttribute($this->
getFieldType(), $field_name)) {
140 $this->fieldtype = $field_type;
190 $this->is_primary = $primary;
224 return in_array($field_name, self::$allowed_attributes[$type],
true);
229 return in_array($field_type, self::$date_fields,
true);
static mapKey(string $key)
setFieldType(string $field_type)
loadFromStdClass(string $name, stdClass $stdClass)
static getAllowedConnectorFields()
static array $date_fields
static array $allowed_attributes
setHasField(bool $has_field)
setPrimary(bool $primary)
loadFromArray(string $name, array $array)
const FIELD_TYPE_TIMESTAMP
setNotNull(bool $not_null)
static isAllowedAttribute(string $type, string $field_name)
static getAllowedDescriptionFields()
setSequence(bool $sequence)
getAttributesForConnector()
getAttributesForDescription()
static isDateFieldType($field_type)