PHP Class JMathai\PhpMultiCurl\MultiCurl

Author: Jaisen Mathai ([email protected])
Datei anzeigen Open project: jmathai/php-multi-curl Class Usage Examples

Public Properties

Property Type Description
$singleton * @TODO make this private and add a method to set it to 0

Public Methods

Method Description
__construct ( )
addCurl ( $ch )
addUrl ( $url, $options = [] )
getInstance ( )
getResult ( $key = null )
getSequence ( )
getTimers ( )
inject ( $key, $value )
reset ( )

Private Methods

Method Description
getKey ( $ch )
headerCallback ( $ch, $header )
startTimer ( $key )
stopTimer ( $key, $done )
storeResponse ( $done, $isAsynchronous = true )
storeResponses ( )

Method Details

__construct() public method

public __construct ( )

addCurl() public method

public addCurl ( $ch )

addUrl() public method

public addUrl ( $url, $options = [] )

getInstance() public static method

public static getInstance ( )

getResult() public method

public getResult ( $key = null )

getSequence() public static method

public static getSequence ( )

getTimers() public static method

public static getTimers ( )

inject() public method

public inject ( $key, $value )

reset() public method

public reset ( )

Property Details

$singleton public_oe static_oe property

* @TODO make this private and add a method to set it to 0
public static $singleton