$object->guid

(unknown)

$object->guid -- Get the GUID (Global Unique IDentificator) of an object

Description

string $object->guid (void)

Minimum version: Midgard 1.4.1 (Bifrost)

Retrieves the GUID of the object.

Returns the object's GUID if successful. Returns FALSE on failure.


<?php
  $topic = mgd_get_topic(123) // topic with id 123 must exist.
  echo $topic->name . "'s GUID is " . $topic->guid();
?>

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