$object->update

Name

$object->update -- Update a record

Synopsis

boolean $object->update(void);

Description

Minimum version: Midgard 1.4 (Bifrost)

Updates a record according to the current content of $object.

Returns true if successfull. Returns false on failure.

Method available for: article, attachment, element, event, event_member, group, host, member, page, pageelement, pagelink, person, preference, sitegroup, snippet, snippetdir, style and topic records.

Example

<?php
  $article = mgd_get_article(123); # article with id 123 must exist.
  $article->title = "New, updated title";
  $article->update();
?>