$object->updateattachment

Name

$object->updateattachment -- Update a record attachment

Synopsis

boolean $object->updateattachment(string name, string newname, string title, string mimetype, int [score], int [author]);

Description

Minimum version: Midgard 1.4 (Bifrost)

Updates information about a record attachment.

Returns true if successfull. Returns false on failure.

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

Example

<?php
  $topic = mgd_get_topic(123); # topic with id 123 must exist.
  $topic->updateattachment("oldname","newname",
                           "example","text/html");
?>