FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\Lib\Application\CurlRequest Class Reference

Handle curl requests. More...

Collaboration diagram for Fossology\Lib\Application\CurlRequest:
Collaboration graph

Public Member Functions

 __construct ($url)
 
 setOptions ($options)
 
 execute ()
 
 getInfo ($resource)
 
 close ()
 

Private Attributes

 $handle = null
 

Detailed Description

Handle curl requests.

Definition at line 34 of file CurlRequest.php.

Constructor & Destructor Documentation

Fossology\Lib\Application\CurlRequest::__construct (   $url)

Constructor to initialize curl handler with URL.

Parameters
string$urlURL to initialize handler with.

Definition at line 46 of file CurlRequest.php.

Member Function Documentation

Fossology\Lib\Application\CurlRequest::close ( )

Close the curl handle.

Definition at line 82 of file CurlRequest.php.

Fossology\Lib\Application\CurlRequest::execute ( )

Execute curl request.

Returns
bool

Definition at line 64 of file CurlRequest.php.

Fossology\Lib\Application\CurlRequest::getInfo (   $resource)

Get info from curl request.

Parameters
int$resourceRequired info
Returns
mixed

Definition at line 74 of file CurlRequest.php.

Fossology\Lib\Application\CurlRequest::setOptions (   $options)

Set curl options for the handle

Parameters
array$optionsOptions for curl handler

Definition at line 55 of file CurlRequest.php.

Member Data Documentation

resource Fossology\Lib\Application\CurlRequest::$handle = null
private

Resource to handle curl requests.

Definition at line 40 of file CurlRequest.php.


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