PHP Class Garmonbozia\Multicurl

Show file Open project: creativecommons/garmonbozia

Public Methods

Method Description
__construct ( )
addCurl ( $url, $identifier = null, $callback = null, $timeout = 5 ) Timeout is in seconds
cleanup ( ) Make sure you call this once you're finished! Avoid resource leaks!
run ( ) Call this once you've called addCurl as many times as you're going to
urlContent ( $identifier, &$content ) Do not try to use null as an identifier. No really. Don't.

Method Details

__construct() public method

public __construct ( )

addCurl() public method

Timeout is in seconds
public addCurl ( $url, $identifier = null, $callback = null, $timeout = 5 )

cleanup() public method

Make sure you call this once you're finished! Avoid resource leaks!
public cleanup ( )

run() public method

Call this once you've called addCurl as many times as you're going to
public run ( )

urlContent() public method

Do not try to use null as an identifier. No really. Don't.
public urlContent ( $identifier, &$content )