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 CurlTransport
+ Graphe d'héritage de CurlTransport:

Fonctions membres publiques

 __construct (Registry $options)
 
 request ($method, Uri $uri, $data=null, array $headers=null, $timeout=null, $userAgent=null)
 

Fonctions membres publiques statiques

static isSupported ()
 

Fonctions membres protégées

 getResponse ($content, $info)
 

Attributs protégés

 $options
 

Fonctions membres privées

 redirectsAllowed ()
 

Description détaillée

HTTP transport class for using cURL.

Depuis
1.7.3

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( Registry  $options)

Constructor. CURLOPT_FOLLOWLOCATION must be disabled when open_basedir or safe_mode are enabled.

Paramètres
Registry$optionsClient options object.

1.7.3

Implémente TransportInterface.

Références $options.

Documentation des fonctions membres

◆ getResponse()

getResponse (   $content,
  $info 
)
protected

Method to get a response object from a server response.

Paramètres
string$contentThe complete server response, including headers as a string if the response has no errors.
array$infoThe cURL request information.
Renvoie
Response
Depuis
1.7.3
Exceptions

Références $content, $info, $return, et null.

◆ isSupported()

static isSupported ( )
static

Method to check if HTTP transport cURL is available for use

Renvoie
boolean true if available, else false
Depuis
3.0.0

Implémente TransportInterface.

◆ redirectsAllowed()

redirectsAllowed ( )
private

Check if redirects are allowed

Renvoie
boolean
Depuis
3.0.0

Références elseif.

◆ request()

request (   $method,
Uri  $uri,
  $data = null,
array  $headers = null,
  $timeout = null,
  $userAgent = null 
)

Send a request to the server and return a HttpResponse object with the response.

Paramètres
string$methodThe HTTP method for sending the request.
Uri$uriThe URI to the resource to request.
mixed$dataEither an associative array or a string to be sent with the request.
array$headersAn array of request headers to send with the request.
integer$timeoutRead timeout in seconds.
string$userAgentThe optional user agent string to send with the request.
Renvoie
Response
Depuis
1.7.3
Exceptions

Implémente TransportInterface.

Références $config, $content, $data, $info, $key, $message, $options, $uri, $user, $value, et request.

Documentation des champs

◆ $options

$options
protected

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