Open Monograph Press
3.3.0
|
Public Member Functions | |
execute ($command) | |
getCommand ($name, array $args=array()) | |
getDescription () | |
getIterator ($command, array $commandOptions=null, array $iteratorOptions=array()) | |
setDescription (ServiceDescriptionInterface $service) | |
![]() | |
createRequest ( $method=RequestInterface::GET, $uri=null, $headers=null, $body=null, array $options=array()) | |
delete ($uri=null, $headers=null, $body=null, array $options=array()) | |
get ($uri=null, $headers=null, $options=array()) | |
getBaseUrl ($expand=true) | |
getConfig ($key=false) | |
head ($uri=null, $headers=null, array $options=array()) | |
options ($uri=null, array $options=array()) | |
patch ($uri=null, $headers=null, $body=null, array $options=array()) | |
post ($uri=null, $headers=null, $postBody=null, array $options=array()) | |
put ($uri=null, $headers=null, $body=null, array $options=array()) | |
send ($requests) | |
setBaseUrl ($url) | |
setConfig ($config) | |
setSslVerification ($certificateAuthority=true, $verifyPeer=true, $verifyHost=2) | |
setUserAgent ($userAgent, $includeDefault=false) | |
![]() | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, array $context=array()) | |
getEventDispatcher () | |
setEventDispatcher (EventDispatcherInterface $eventDispatcher) | |
Additional Inherited Members | |
![]() | |
static | getAllEvents () |
![]() | |
static | factory ($config=array()) |
![]() | |
const | CREATE_REQUEST = 'client.create_request' |
const | HTTP_DATE = 'D, d M Y H:i:s \G\M\T' |
Client interface for executing commands on a web service.
Definition at line 16 of file lib/vendor/guzzle/guzzle/src/Guzzle/Service/ClientInterface.php.
Guzzle\Service\ClientInterface::execute | ( | $command | ) |
Execute one or more commands
CommandInterface | array | Traversable | $command | Command, array of commands or Traversable object containing commands to execute |
InvalidArgumentException | if an invalid command is passed |
CommandTransferException | if an exception is encountered when transferring multiple commands |
Implemented in Guzzle\Service\Client.
Guzzle\Service\ClientInterface::getCommand | ( | $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.
string | $name | Name of the command to retrieve |
array | $args | Arguments to pass to the command |
InvalidArgumentException | if no command can be found by name |
Implemented in Guzzle\Service\Client.
Guzzle\Service\ClientInterface::getDescription | ( | ) |
Get the service description of the client
Implemented in Guzzle\Service\Client.
Referenced by Guzzle\Service\Command\Factory\CompositeFactory\getDefaultChain().
Guzzle\Service\ClientInterface::getIterator | ( | $command, | |
array | $commandOptions = null , |
||
array | $iteratorOptions = array() |
||
) |
Get a resource iterator from the client.
string | CommandInterface | $command | Command class or command name. |
array | $commandOptions | Command options used when creating commands. |
array | $iteratorOptions | Iterator options passed to the iterator when it is instantiated. |
Implemented in Guzzle\Service\Client.
Guzzle\Service\ClientInterface::setDescription | ( | ServiceDescriptionInterface | $service | ) |
Set the service description of the client
ServiceDescriptionInterface | $service | Service description |
Implemented in Guzzle\Service\Client.