public function getConnection($object, $connection = null, $extra_fields = '', $limit = 0, $offset = 0, $until = null, $since = null)
	{
		$path = $object . '/' . $connection . $extra_fields;

		if ($this->oauth != null)
		{
			if ($this->oauth->isAuthenticated())
			{
				$response = $this->oauth->query($this->fetchUrl($path, $limit, $offset, $until, $since));

				if (strcmp($response->body, ''))
				{
					return json_decode($response->body);
				}
				else
				{
					return $response->headers['Location'];
				}
			}
			else
			{
				return false;
			}
		}

		// Send the request.
		return $this->sendRequest($path, '', null, $limit, $offset, $until, $since);
	}
public function getConnection($object, $connection = null, $extra_fields = '', $limit = 0, $offset = 0, $until = null, $since = null)
	{
		$path = $object . '/' . $connection . $extra_fields;

		if ($this->oauth != null)
		{
			if ($this->oauth->isAuthenticated())
			{
				$response = $this->oauth->query($this->fetchUrl($path, $limit, $offset, $until, $since));

				if (strcmp($response->body, ''))
				{
					return json_decode($response->body);
				}
				else
				{
					return $response->headers['Location'];
				}
			}
			else
			{
				return false;
			}
		}

		// Send the request.
		return $this->sendRequest($path, '', null, $limit, $offset, $until, $since);
	}
public function getConnection ( $ object , $ connection = null , $ extra_fields = '' , $ limit = 0 , $ offset = 0 , $ until = null , $ since = null ) { $ path = $ object . '/' . $ connection . $ extra_fields ; if ( $ this -> oauth != null ) { if ( $ this -> oauth -> isAuthenticated ( ) ) { $ response = $ this -> oauth -> query ( $ this -> fetchUrl ( $ path , $ limit , $ offset , $ until , $ since ) ) ; if ( strcmp ( $ response -> body , '' ) ) { return json_decode ( $ response -> body ) ; } else { return $ response -> headers [ 'Location' ] ; } } else { return false ; } } // Send the request. return $ this -> sendRequest ( $ path , '' , null , $ limit , $ offset , $ until , $ since ) ; }
Method to get object's connection.

@param   string   $object        The object id.
@param   string   $connection    The object's connection name.
@param   string   $extra_fields  URL fields.
@param   integer  $limit         The number of objects per page.
@param   integer  $offset        The object's number on the page.
@param   string   $until         A unix timestamp or any date accepted by strtotime.
@param   string   $since         A unix timestamp or any date accepted by strtotime.

@return  mixed   The decoded JSON response or false if the client is not authenticated.

@since   1.0
Method to get object s connection .