$_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.
Tag handling library
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 |
tag_object(object $object, array $tags, $component = null) : boolean
Tags given object with the tags in the string
Creates missing tags and tag_links, sets tag_link navorder Deletes tag links from object that are not in the list provided
object | $object | MidCOM DBA object |
array | $tags | List of tags and urls, tag is key, url is value |
$component |
indicating success/failure
get_objects_with_tags(array $tags, array $classes, string $match = 'OR', string $order = 'ASC') : array
Gets all objects of given classes with given tags
array | $tags | tags to search for |
array | $classes | classes to search in |
string | $match | AND or OR, depending if you require all of the given tags on any of them, defaults to 'OR' |
string | $order | ASC or DESC, to set the order of the returned list, defaults to 'ASC' |
of objects or false on critical failure