$object->setsitegroup

(unknown)

$object->setsitegroup -- Set the sitegroup a record belongs to

Description

boolean $object->setsitegroup (int id)

Minimum version: Midgard 1.4 (Bifrost)

Sets the sitegroup a record belongs to. A call to this function will fail if the caller is not authenticated as root.

Returns TRUE if succesfull. Returns FALSE on failure.

Caution

Do not call this method unless you are intimately familiar with the interdependencies between Midgard objects.


<?php
  $host = mgd_get_host(123); // host with id 123 must exist.
  $host->setsitegroup(3); // move host to sitegroup 3.
?>

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