Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
mod_bigbluebuttonbn\local\proxy\curl Class Reference

A curl wrapper for bbb. More...

Public Member Functions

 __construct ()
 Constructor for the class.
 
 get ($url, $params=[], $options=[])
 Fetch the specified URL via a GET request.
 
 get_content_type ()
 Fetch the content type.
 
 head ($url, $options=[])
 Fetch the specified URL via a HEAD request.
 
 post ($url, $params='', $options=[])
 HTTP POST method.
 
 set_content_type (string $type)
 Set the desired current content type.
 

Protected Member Functions

 handle_response ($response)
 Handle the response.
 

Protected Attributes

string $contenttype
 

Detailed Description

A curl wrapper for bbb.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get()

mod_bigbluebuttonbn\local\proxy\curl::get ( $url,
$params = [],
$options = [] )

Fetch the specified URL via a GET request.

Parameters
string$url
string$params
array$options

◆ handle_response()

mod_bigbluebuttonbn\local\proxy\curl::handle_response ( $response)
protected

Handle the response.

Parameters
mixed$response
Return values
null|SimpleXMLElementNull on error

◆ head()

mod_bigbluebuttonbn\local\proxy\curl::head ( $url,
$options = [] )

Fetch the specified URL via a HEAD request.

Parameters
string$url
array$options

◆ post()

mod_bigbluebuttonbn\local\proxy\curl::post ( $url,
$params = '',
$options = [] )

HTTP POST method.

Parameters
string$url
array | string$params
array$options
Return values
null|SimpleXMLElementNull on error

◆ set_content_type()

mod_bigbluebuttonbn\local\proxy\curl::set_content_type ( string $type)

Set the desired current content type.

Parameters
string$type
Return values
self

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