Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JMediawikiHttp
+ Graphe d'héritage de JMediawikiHttp:

Fonctions membres publiques

 __construct (Registry $options=null, JHttpTransport $transport=null)
 
 get ($url, array $headers=null, $timeout=null)
 
 post ($url, $data, array $headers=null, $timeout=null)
 

Description détaillée

HTTP client class for connecting to a MediaWiki instance.

Depuis
3.1.4

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Registry  $options = null,
JHttpTransport  $transport = null 
)

Constructor.

Paramètres
Registry$optionsClient options object.
JHttpTransport$transportThe HTTP transport object.
Depuis
3.1.4

Références $options.

Documentation des fonctions membres

◆ get()

get (   $url,
array  $headers = null,
  $timeout = null 
)

Method to send the GET command to the server.

Paramètres
string$urlPath to the resource.
array$headersAn array of name-value pairs to include in the header of the request.
integer$timeoutRead timeout in seconds.
Renvoie
JHttpResponse
Depuis
3.1.4

Références $key, $url, et null.

◆ post()

post (   $url,
  $data,
array  $headers = null,
  $timeout = null 
)

Method to send the POST command to the server.

Paramètres
string$urlPath to the resource.
mixed$dataEither an associative array or a string to be sent with the request.
array$headersAn array of name-value pairs to include in the header of the request
integer$timeoutRead timeout in seconds.
Renvoie
JHttpResponse
Depuis
3.1.4

Références $data, $key, $url, et null.


La documentation de cette classe a été générée à partir du fichier suivant :