$object->getsitegroup

(unknown)

$object->getsitegroup -- Get the sitegroup a record belongs to

Description

int $object->getsitegroup (void)

Minimum version: Midgard 1.4 (Bifrost)

Retrieves the id of the sitegroup the record belongs to.

Returns the sitegroup id if successful. Returns FALSE on failure.


<?php
  $topic = mgd_get_topic(123) // topic with id 123 must exist.
  echo $topic->name . " is in sitegroup " . $topic->getsitegroup();
?>

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