Minimum version: Midgard 1.4 (Bifrost)
Updates a record according to the current content of $object.
Returns TRUE on success, FALSE on failure.
<?php $article = mgd_get_article(123); // article with id 123 must exist. $article->title = "New, updated title"; $article->update(); ?> |
Method available for: article, attachment, element, event, event_member, group, host, member, page, pageelement, pagelink, person, preference, sitegroup, snippet, snippetdir, style and topic objects.