OBJECTCLASS_GROUPOFNAMES
OBJECTCLASS_GROUPOFNAMES
The specific object class of this object type
This class provides methods to deal with groups for Kolab.
Copyright 2008-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
$_composite : \Horde_Kolab_Server_Composite
Link to the Kolab server.
__construct(\Horde_Kolab_Server_Composite $composite, string $guid = null)
Initialize the Kolab Object. Provide either the GUID
\Horde_Kolab_Server_Composite | $composite | The link to the Kolab server. |
string | $guid | GUID of the object. |
save(array $info) : NULL
Saves object information. This may either create a new entry or modify an existing entry.
Please note that fields with multiple allowed values require the callee to provide the full set of values for the field. Any old values that are not resubmitted will be considered to be deleted.
array | $info | The information about the object. |
If saving the data failed.
gidForMail( $server, string $mail, integer $restrict) : mixed
Identify the GID for the first group found with the given mail.
$server | ||
string | Search for groups with this mail address. |
|
integer | $restrict | A Horde_KolabServer::RESULT* result restriction. |
The GID or false if there was no result.
memberOfGroupAddress( $server, string $uid, string $mail) : boolean
Is the given UID member of the group with the given mail address?
$server | ||
string | $uid | UID of the user. |
string | Search the group with this mail address. |
True in case the user is in the group, false otherwise.