public function setGroupSettings($gid, $xml) {
		if(!is_string ($gid)) {
      throw new LinkedInException('LinkedIn->setGroupSettings(): bad data passed, $token_access should be in array format.');
		}
		if(!is_string ($xml)) {
      throw new LinkedInException('LinkedIn->setGroupSettings(): bad data passed, $token_access should be in array format.');
		}
		
		// construct and send the request
		$query    = self::_URL_API . '/v1/people/~/group-memberships/' . trim($gid);
		$response = $this->fetch('PUT', $query, $xml);
		
	  /**
	   * Check for successful request (a 200 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */ 
		return $this->checkResponse(200, $response);
	}
public function setGroupSettings($gid, $xml) {
		if(!is_string ($gid)) {
      throw new LinkedInException('LinkedIn->setGroupSettings(): bad data passed, $token_access should be in array format.');
		}
		if(!is_string ($xml)) {
      throw new LinkedInException('LinkedIn->setGroupSettings(): bad data passed, $token_access should be in array format.');
		}
		
		// construct and send the request
		$query    = self::_URL_API . '/v1/people/~/group-memberships/' . trim($gid);
		$response = $this->fetch('PUT', $query, $xml);
		
	  /**
	   * Check for successful request (a 200 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */ 
		return $this->checkResponse(200, $response);
	}
public function setGroupSettings ( $ gid , $ xml ) { if ( ! is_string ( $ gid ) ) { throw new LinkedInException ( 'LinkedIn->setGroupSettings(): bad data passed, $token_access should be in array format.' ) ; } if ( ! is_string ( $ xml ) ) { throw new LinkedInException ( 'LinkedIn->setGroupSettings(): bad data passed, $token_access should be in array format.' ) ; } // construct and send the request $ query = self :: _URL_API . '/v1/people/~/group-memberships/' . trim ( $ gid ) ; $ response = $ this -> fetch ( 'PUT' , $ query , $ xml ) ; /**
	   * Check for successful request (a 200 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */ return $ this -> checkResponse ( 200 , $ response ) ; }
This sets the group settings of the specified group.

http://developer.linkedin.com/documents/groups-api

@param str $gid
The group id.
@param str $xml
The group settings to set. The settings are:
-<show-group-logo-in-profle>
-<contact-email>
-<email-digest-frequency>
-<email-annoucements-from-managers>
-<allow-messages-from-members>
-<email-for-every-new-post>

@return arr
Array containing retrieval success, LinkedIn response.
This sets the group settings of the specified group .