Open Source Content Management Framework

$object->guid

  1. Description

$object->guid -- Get the GUID of an object

warning: this method is deprecated. Instead of using this method , use object's guid property. Since Midgard 1.8 guid property is assigned even for legacy classic API objects

Description

string $object->guid(void)

Retrieves the GUID of the object.

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

<?php  
    $topic = new MidgardTopic(123) // topic with id 123 must exist.  
    echo $topic->name . "'s GUID is " . $topic->guid();  
    ?>
Designed by Nemein, hosted by Anykey