On Wed, 2002-11-27 at 17:54, Georg Berner wrote:
> Who can tell me, how to define a groups sitegroup. I cant find anything
> about it in the manual. I mean, there should be a parameter in
> mgd_create_group(); that defines the sitegroup?
By default the group, like any Midgard object will be created
to the sitegroup you're authenticated into.
However, if you're working in SG0 and want to create groups
(or other objects) to another sitegroup, you can use the
setsitegroup() method.
$group = mgd_get_group();
$group->name = "My group";
$id = $group->create();
if ($id) {
$group = mgd_get_group($id);
$group->setsitegroup(1);
}
> Georg
/Bergie
--
Henri Bergius [EMAIL PROTECTED]
Consultant Partner Tel: +358-20-198 6032
Nemein Oy http://www.nemein.com/
Nemein.Net - Project tracking solution for consulting companies
http://www.nemein.com/Nemein.Net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]