PHP Class Garmonbozia\Multicurl

Afficher le fichier Open project: creativecommons/garmonbozia

Méthodes publiques

Méthode 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 méthode

public __construct ( )

addCurl() public méthode

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

cleanup() public méthode

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

run() public méthode

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

urlContent() public méthode

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