Zend/Gdata/Gapps.php
public function updateGroup($groupId, $groupName = null, $description = null,
            $emailPermission = null)
    {
        $i = 0;
        $group = $this->newGroupEntry();

        $properties[$i] = $this->newProperty();
        $properties[$i]->name = 'groupId';
        $properties[$i]->value = $groupId;
        $i++;

        if($groupName != null) {
            $properties[$i] = $this->newProperty();
            $properties[$i]->name = 'groupName';
            $properties[$i]->value = $groupName;
            $i++;
        }

        if($description != null) {
            $properties[$i] = $this->newProperty();
            $properties[$i]->name = 'description';
            $properties[$i]->value = $description;
            $i++;
        }

        if($emailPermission != null) {
            $properties[$i] = $this->newProperty();
            $properties[$i]->name = 'emailPermission';
            $properties[$i]->value = $emailPermission;
            $i++;
        }

        $group->property = $properties;

        $uri  = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/';
        $uri .= $this->getDomain() . '/' . $groupId;

        return $this->updateEntry($group, $uri, 'Zend_Gdata_Gapps_GroupEntry');
    }
public function updateGroup($groupId, $groupName = null, $description = null,
            $emailPermission = null)
    {
        $i = 0;
        $group = $this->newGroupEntry();

        $properties[$i] = $this->newProperty();
        $properties[$i]->name = 'groupId';
        $properties[$i]->value = $groupId;
        $i++;

        if($groupName != null) {
            $properties[$i] = $this->newProperty();
            $properties[$i]->name = 'groupName';
            $properties[$i]->value = $groupName;
            $i++;
        }

        if($description != null) {
            $properties[$i] = $this->newProperty();
            $properties[$i]->name = 'description';
            $properties[$i]->value = $description;
            $i++;
        }

        if($emailPermission != null) {
            $properties[$i] = $this->newProperty();
            $properties[$i]->name = 'emailPermission';
            $properties[$i]->value = $emailPermission;
            $i++;
        }

        $group->property = $properties;

        $uri  = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/';
        $uri .= $this->getDomain() . '/' . $groupId;

        return $this->updateEntry($group, $uri, 'Zend_Gdata_Gapps_GroupEntry');
    }
public function updateGroup ( $ groupId , $ groupName = null , $ description = null , $ emailPermission = null ) { $ i = 0 ; $ group = $ this -> newGroupEntry ( ) ; $ properties [ $ i ] = $ this -> newProperty ( ) ; $ properties [ $ i ] -> name = 'groupId' ; $ properties [ $ i ] -> value = $ groupId ; $ i ++ ; if ( $ groupName != null ) { $ properties [ $ i ] = $ this -> newProperty ( ) ; $ properties [ $ i ] -> name = 'groupName' ; $ properties [ $ i ] -> value = $ groupName ; $ i ++ ; } if ( $ description != null ) { $ properties [ $ i ] = $ this -> newProperty ( ) ; $ properties [ $ i ] -> name = 'description' ; $ properties [ $ i ] -> value = $ description ; $ i ++ ; } if ( $ emailPermission != null ) { $ properties [ $ i ] = $ this -> newProperty ( ) ; $ properties [ $ i ] -> name = 'emailPermission' ; $ properties [ $ i ] -> value = $ emailPermission ; $ i ++ ; } $ group -> property = $ properties ; $ uri = self :: APPS_BASE_FEED_URI . self :: APPS_GROUP_PATH . '/' ; $ uri .= $ this -> getDomain ( ) . '/' . $ groupId ; return $ this -> updateEntry ( $ group , $ uri , 'Zend_Gdata_Gapps_GroupEntry' ) ; }
Update group properties with new values. any property not defined will not
be updated

@param string $groupId A unique identifier for the group
@param string $groupName The name of the group
@param string $description A description of the group
@param string $emailPermission The subscription permission of the group
@return Zend_Gdata_Gapps_GroupEntry The group entry as updated on the server.
Update group properties with new values . any property not defined will not be updated