Open Source Content Management System

$object->getattachment

  1. Description

$object->getattachment -- Get a record attachment

Description

`object **$object->getattachment** (string name)`

Minimum version: Midgard 1.4 (Bifrost)

Retrieves information about a record attachment by its name.

Returns an object describing the record attachment if successful. Returns FALSE on failure.

getattachment($att_name)) {  
        echo $attachment->id, $attachment->title ;  
      } else {  
        echo "Could not get attachment.
\n"; echo "Reason: " .mgd_errstr(); } ?>

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

Designed by Nemein, hosted by Anykey