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;
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)
static getAllowedDescriptionFields()
static getAllowedConnectorFields()
setSequence(bool $sequence)
setFieldType(string $field_type)
setNotNull(bool $not_null)
static array $allowed_attributes
const FIELD_TYPE_TIMESTAMP
static isDateFieldType($field_type)
static isAllowedAttribute(string $type, string $field_name)
getAttributesForDescription()
loadFromArray(string $name, array $array)
setPrimary(bool $primary)
loadFromStdClass(string $name, stdClass $stdClass)
setHasField(bool $has_field)
getAttributesForConnector()
static array $date_fields