$_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.
Helpers for HTTP content fetching and handling
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 |
get_link_values(string $html, string $relation, string $type = null) : array
Get value(s) of a link tag(s) in HTML page.
string | $html | HTML to parse |
string | $relation | Relation (rel) or reverse relation (rev) of the link tag to fetch |
string | $type | Type (type) of the link tag to fetch (defaults to null, meaning all types of the link relation) |
Links matching given criteria as arrays containing keys title, href and optionally hreflang
get_anchor_values(string $html, string $relation) : array
Get value(s) of an anchor tag(s) in HTML page.
string | $html | HTML to parse |
string | $relation | Relation (rel) of the anchor to fetch |
Links matching given criteria as arrays containing keys title, href and value