This type allows you to control an arbitrary number of attachments on a given object. It can only operate if the storage implementation provides it with a Midgard Object. The storage location provided by the schema is unused at this time, as attachment operations cannot be undone. Instead, the direct parameter calls are used to manage the list of attachments in a parameter associated to the domain of the type. The storage IO calls will not do much, except synchronizing data where necessary.
The type can manage an arbitrary number of attachments. Each attachment is identified by a handle (not its name!). It provides management functions for existing attachments, which allow you to add, delete and update them in all variants. These functions are executed immediately on the storage object, no undo is possible.
This type serves as a base class for other, more advanced blob types, like the image type.
Available configuration options:
It will leave the field empty in case the storage object is null.
For now these are only used for backup purposes but in the future we'll move to use them as main source
stringidentifier of the attachment
\midgard_attachment&$attachment reference to the attachment object to operare on.
|todo||Isn't there a reflector method that already does this (for filenames)?|