API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsHttpGet Class Reference

Public Member Functions

 __construct ($url)
 
 fetch ()
 
 getError ()
 

Protected Member Functions

 fetchCurl ()
 
 fetchFopen ()
 

Protected Attributes

 $useCurl = true
 
 $url
 
 $error
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $url)

XoopsHttpGet constructor.

Parameters
string$urlthe url to process
Exceptions

RuntimeException if neither curl extension or stream wrappers (allow_url_fopen) is available

Member Function Documentation

◆ fetch()

fetch ( )

Return the response from a GET to the specified URL.

Returns
string|bool response or false on error
Here is the call graph for this function:

◆ fetchCurl()

fetchCurl ( )
protected

Use curl to GET the specified URL.

Returns
string|bool response or false on error
Here is the caller graph for this function:

◆ fetchFopen()

fetchFopen ( )
protected

Use stream wrapper to GET the specified URL.

Returns
string|false response or false on error
Here is the caller graph for this function:

◆ getError()

getError ( )

Return any error set during processing of fetch()

Returns
string|null

Field Documentation

◆ $error

$error
protected

◆ $url

$url
protected

◆ $useCurl

$useCurl = true
protected

The documentation for this class was generated from the following file: