Minimum version: Midgard 1.4 (Bifrost)
This method has three 'modes' of operation.
When called with (domain, name), the value of the parameter will be returned.
When called with (domain, name, value) and value being a non-empty string, the parameter denoted by (domain, name) will be set to 'value'. The parameter will be created if it doesn't exist yet.
When called with (domain, name, value) and value being an empty string, the parameter denoted by (domain, name) will be deleted.
Returns value of parameter or TRUE if successful. Returns FALSE on failure.
<?php $person = mgd_get_person(123); // person with id 123 must exist. $person->parameter("Midgard","skill","novice"); $person->parameter("Midgard","skill","intermediate"); $person->parameter("Midgard","skill",""); ?> |
Method available for: article, attachment, element, event, event_member, group, host, member, page, pageelement, pagelink, person, preference, sitegroup, snippet, snippetdir, style and topic objects.