36 self::FIELD_TYPE_TEXT => [
41 self::FIELD_TYPE_INTEGER => [
58 foreach ($array as $key => $value) {
59 $this->{$key} = match ($value) {
69 $array = (array) $stdClass;
122 $this->fieldtype = $field_type;
172 $this->is_primary = $primary;
208 return in_array($field_name, self::$allowed_attributes[$type],
true);
213 return in_array($field_type, self::$date_fields,
true);
static mapKey(string $key)
static getAllowedDescriptionFields()
static getAllowedConnectorFields()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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