$_component
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
The Grand Unified Reflector, copying helper class
Note, that the request data, for ease of use, already contains the L10n Databases of the Component and MidCOM itself located in this class. They are stored as 'l10n' and 'l10n_midcom'. Also available as 'config' is the current component configuration.
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
copy_tree(mixed $source, mixed $parent) : mixed
Copy an object tree. Both source and parent may be liberally filled. Source can be either MgdSchema or MidCOM db object or GUID of the object and parent can be
This method is self-aware and will refuse to perform any infinite loops (e.g. to copy itself to its descendant, copying itself again and again and again).
Eventually this method will return the first root object that was created, i.e. the root of the new tree.
mixed | $source | GUID or MgdSchema object that will be copied |
mixed | $parent | MgdSchema or MidCOM db object, predefined array or ID of the parent object |
False on failure, newly created MgdSchema root object on success
copy_object_tree(mixed $source, mixed $parent, array $exclude = array(), boolean $copy_parameters = true, boolean $copy_metadata = true, boolean $copy_attachments = true) : mixed
Copy an object tree. Both source and parent may be liberally filled. Source can be either MgdSchema or MidCOM db object or GUID of the object and parent can be
This method is self-aware and will refuse to perform any infinite loops (e.g. to copy itself to its descendant, copying itself again and again and again).
Eventually this method will return the first root object that was created, i.e. the root of the new tree.
mixed | $source | GUID or MgdSchema object that will be copied |
mixed | $parent | MgdSchema or MidCOM db object, predefined array or ID of the parent object |
array | $exclude | IDs that will be excluded from the copying |
boolean | $copy_parameters | Switch to determine if the parameters should be copied |
boolean | $copy_metadata | Switch to determine if the metadata should be copied (excluding created and published) |
boolean | $copy_attachments | Switch to determine if the attachments should be copied (creates only a new link, doesn't duplicate the content) |
False on failure, newly created MgdSchema root object on success