Class Client
Client object for executing commands on a web service.
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Client implements Guzzle\Http\ClientInterface
- Guzzle\Service\Client implements Guzzle\Service\ClientInterface
public static
|
#
factory( array|
Basic factory method to create a new client. Extend this method in subclasses to build more complex clients. |
public static
array
|
|
public
mixed
|
|
public
|
#
enableMagicMethods( boolean $isEnabled )
Specify whether or not magic methods are enabled (disabled by default) |
public
|
#
getCommand( string $name, array $args = array() )
Get a command by name. First, the client will see if it has a service description and if the service description defines a command by the supplied name. If no dynamic command is found, the client will look for a concrete command class exists matching the name supplied. If neither are found, an InvalidArgumentException is thrown. |
public
|
#
setCommandFactory(
Set the command factory used to create commands by name |
public
|
#
setResourceIteratorFactory(
Set the resource iterator factory associated with the client |
public
ResourceIteratorInterface
|
#
getIterator( string|
Get a resource iterator from the client. |
public
mixed
|
|
public
|
#
setDescription(
Set the service description of the client |
public
|
|
public
|
#
setInflector(
Set the inflector used with the client |
public
|
|
protected
|
|
protected
|
addSubscriber(),
dispatch(),
getEventDispatcher(),
setEventDispatcher()
|
string |
COMMAND_PARAMS
|
'command.params' |
CURL_OPTIONS,
DISABLE_REDIRECTS,
REQUEST_PARAMS,
SSL_CERT_AUTHORITY
|
CREATE_REQUEST,
HTTP_DATE
|
protected
|
$serviceDescription |
|
#
Description of the service and possible commands |
protected
boolean
|
$enableMagicMethods | true |
#
Whether or not magic methods are enabled |
protected
|
$commandFactory |
|
|
protected
|
$resourceIteratorFactory |
|
|
protected
|
$inflector |
|
#
Inflector associated with the service/client |
$defaultHeaders,
$requestFactory,
$userAgent
|
$eventDispatcher
|