$object->setsitegroup

Name

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

Synopsis

boolean $object->setsitegroup(int id);

Description

Minimum version: Midgard 1.4 (Bifrost)

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

Returns true if succesfull. Returns false on failure.

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

Example

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