JMediawikiObject

MediaWiki API object class for the Joomla Platform.

abstract
since

3.1.4

package

Joomla.Platform

Methods

__construct

Constructor.

__construct(\Joomla\Registry\Registry $options = null, \JMediawikiHttp $client = null) 
since

3.1.4

Arguments

$options

\Joomla\Registry\RegistryMediawiki options object.

$client

\JMediawikiHttpThe HTTP client object.

buildParameter

Method to build request parameters from a string array.

buildParameter(array $params) : string
since

3.1.4

Arguments

$params

arraystring array that contains the parameters

Response

stringrequest parameter

fetchUrl

Method to build and return a full request URL for the request.

fetchUrl(string $path) : string
since

3.1.4

Arguments

$path

stringURL to inflect

Response

stringThe request URL.

validateResponse

Method to validate response for errors

validateResponse(\JHttpresponse $response) : Object
since

3.1.4

throws

\DomainException

Arguments

$response

\JHttpresponsereponse from the mediawiki server

Response

Object

Properties

options

Options for the MediaWiki object.

since

3.1.4

Type(s)

\Joomla\Registry\Registry

client

The HTTP client object to use in sending HTTP requests.

since

3.1.4

Type(s)

\JMediawikiHttp