Stud.IP  5.4
LonCapaRequest Class Reference

Public Member Functions

 __construct ()
 
 initOptions ()
 
 __destruct ()
 
 setOption ($key, $value)
 
 request ($url, $postfields=null)
 

Protected Member Functions

 sendRequest ($url, $postfields=null)
 

Protected Attributes

 $options
 
 $ch
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

LonCapaRequest constructor.

◆ __destruct()

__destruct ( )

close connection

Member Function Documentation

◆ initOptions()

initOptions ( )

initializes curl options

◆ request()

request (   $url,
  $postfields = null 
)

do a curl request on the given url and return the result if successfull

Parameters
$urlstring
array$postfields
Returns
string

◆ sendRequest()

sendRequest (   $url,
  $postfields = null 
)
protected

do a curl request on the given url and return the result if successfull

Parameters
$urlstring
array$postfields
Returns
array

◆ setOption()

setOption (   $key,
  $value 
)

set curl options

Parameters
$key
$value

Field Documentation

◆ $ch

$ch
protected

◆ $options

$options
protected

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