Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
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 ( )

LonCapaRequest constructor.

__destruct ( )

close connection

Member Function Documentation

initOptions ( )

initializes curl options

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 (   $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 (   $key,
  $value 
)

set curl options

Parameters
$key
$value

Field Documentation

$ch
protected
$options
protected

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