Horde_Kolab_Server_Object_Kolabgroupofnames::prepareObjectInformation PHP Method

prepareObjectInformation() public method

Distill the server side object information to save.
public prepareObjectInformation ( array &$info ) : NULL.
$info array The information about the object.
return NULL.
    public function prepareObjectInformation(array &$info)
    {
        if (!$this->exists()) {
            if (!isset($info[self::ATTRIBUTE_CN])) {
                if (!isset($info[self::ATTRIBUTE_MAIL])) {
                    throw new Horde_Kolab_Server_Exception('Either the mail address or the common name has to be specified for a group object!');
                } else {
                    $info[self::ATTRIBUTE_CN] = $info[self::ATTRIBUTE_MAIL];
                }
            }
        }
    }