Source for file CallerFactory.php
Documentation is available at CallerFactory.php
* @package php-lastfm-api
* @author Felix Bruns <felixbruns@web.de>
/** A default {@link Caller} class.
private static $default =
'CurlCaller';
/** Get a {@link CurlCaller} instance.
* @return CurlCaller A {@link CurlCaller} instance.
/** Get a {@link PeclCaller} instance.
* @return PeclCaller A {@link PeclCaller} instance.
/** Get a {@link SocketCaller} instance.
* @return SocketCaller A {@link SocketCaller} instance.
/** Get a {@link Caller} instance.
* @return Caller A {@link Caller} instance.
return self::$default::getInstance();
$function =
'get'.
self::$default;
return self::$function();
/** Sets the default {@link Caller}.
* @param string $caller A Caller class name. (Required)
if(get_parent_class($class) ==
'Caller'){
throw
new Exception("Class '".
$class.
"' does not extend 'Caller'!");
Documentation generated on Mon, 22 Dec 2008 16:57:32 +0100 by phpDocumentor 1.4.1