public static function isThrottled($response) {
	  $return_data = FALSE;
    
    // check the variable
	  if(!empty($response) && is_string($response)) {
	    // we have an array and have a properly formatted LinkedIn response
	       
      // store the response in a temp variable
      $temp_response = self::xmlToArray($response);
  	  if($temp_response !== FALSE) {
    	  // check to see if we have an error
    	  if(array_key_exists('error', $temp_response) && ($temp_response['error']['children']['status']['content'] == 403) && preg_match('/throttle/i', $temp_response['error']['children']['message']['content'])) {
    	    // we have an error, it is 403 and we have hit a throttle limit
  	      $return_data = TRUE;
    	  }
  	  }
  	}
  	return $return_data;
	}
public static function isThrottled($response) {
	  $return_data = FALSE;
    
    // check the variable
	  if(!empty($response) && is_string($response)) {
	    // we have an array and have a properly formatted LinkedIn response
	       
      // store the response in a temp variable
      $temp_response = self::xmlToArray($response);
  	  if($temp_response !== FALSE) {
    	  // check to see if we have an error
    	  if(array_key_exists('error', $temp_response) && ($temp_response['error']['children']['status']['content'] == 403) && preg_match('/throttle/i', $temp_response['error']['children']['message']['content'])) {
    	    // we have an error, it is 403 and we have hit a throttle limit
  	      $return_data = TRUE;
    	  }
  	  }
  	}
  	return $return_data;
	}
public static function isThrottled ( $ response ) { $ return_data = FALSE ; // check the variable if ( ! empty ( $ response ) && is_string ( $ response ) ) { // we have an array and have a properly formatted LinkedIn response // store the response in a temp variable $ temp_response = self :: xmlToArray ( $ response ) ; if ( $ temp_response !== FALSE ) { // check to see if we have an error if ( array_key_exists ( 'error' , $ temp_response ) && ( $ temp_response [ 'error' ] [ 'children' ] [ 'status' ] [ 'content' ] == 403 ) && preg_match ( '/throttle/i' , $ temp_response [ 'error' ] [ 'children' ] [ 'message' ] [ 'content' ] ) ) { // we have an error, it is 403 and we have hit a throttle limit $ return_data = TRUE ; } } } return $ return_data ; }
Throttling check.

Checks the passed LinkedIn response to see if we have hit a throttling
limit:

http://developer.linkedin.com/docs/DOC-1112

@param arr $response
The LinkedIn response.

@return bool
TRUE/FALSE depending on content of response.
Throttling check .