Abstract Class JOpenstreetmapObject

Description

Openstreetmap API object class for the Joomla Platform

  • abstract:
  • since: 13.1

Located in /libraries/joomla/openstreetmap/object.php (line 19)


	
			
Direct descendents
Class Description
 class JOpenstreetmapChangesets Openstreetmap API Changesets class for the Joomla Platform
 class JOpenstreetmapElements Openstreetmap API Elements class for the Joomla Platform
 class JOpenstreetmapGps Openstreetmap API GPS class for the Joomla Platform
 class JOpenstreetmapInfo Openstreetmap API Info class for the Joomla Platform
 class JOpenstreetmapUser Openstreetmap API User class for the Joomla Platform
Variable Summary
Method Summary
 JOpenstreetmapObject __construct ([JRegistry &$options = null], [JHttp $client = null], [JOpenstreetmapOauth $oauth = null])
 mixed getOption (string $key)
 SimpleXMLElement sendRequest (string $path, [string $method = 'GET'], [array $headers = array()], [mixed $data = ''])
 JOpenstreetmapObject setOption (string $key, mixed $value)
Variables
JHttp $client (line 35)

The HTTP client object to use in sending HTTP requests.

  • since: 13.1
  • access: protected
JOpenstreetmapOauth $oauth (line 43)

The OAuth client.

  • since: 13.1
  • access: protected
JRegistry $options (line 27)

Options for the Openstreetmap object.

  • since: 13.1
  • access: protected
Methods
Constructor __construct (line 54)

Constructor

  • since: 13.1
  • access: public
JOpenstreetmapObject __construct ([JRegistry &$options = null], [JHttp $client = null], [JOpenstreetmapOauth $oauth = null])
getOption (line 70)

Get an option from the JOpenstreetmapObject instance.

  • return: The option value.
  • since: 13.1
  • access: public
mixed getOption (string $key)
  • string $key: The name of the option to get.
sendRequest (line 105)

Method to send the request which does not require authentication.

  • return: The XML response
  • since: 13.1
  • throws: DomainException
  • access: public
SimpleXMLElement sendRequest (string $path, [string $method = 'GET'], [array $headers = array()], [mixed $data = ''])
  • string $path: The path of the request to make
  • string $method: The request method.
  • array $headers: The headers passed in the request.
  • mixed $data: Either an associative array or a string to be sent with the post request.
setOption (line 85)

Set an option for the JOpenstreetmapObject instance.

  • return: This object for method chaining.
  • since: 13.1
  • access: public
JOpenstreetmapObject setOption (string $key, mixed $value)
  • string $key: The name of the option to set.
  • mixed $value: The option value to set.

Documentation generated on Tue, 19 Nov 2013 15:09:45 +0100 by phpDocumentor 1.4.3