Add a new GLPI normalized field
public addField ( $table, $field, $type, $options = [] ) | ||
$table | string | |
$field | string to add | |
$type | string (see fieldFormat) | |
$options | array - update : if not empty = value of $field (must be protected) - condition : if needed - value : default_value new field's default value, if a specific default value needs to be used - nodefault : do not define default value (default false) - comment : comment to be added during field creation - after : where adding the new field |