|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This interface defines a class library for performing multiple web requests in batches. More...
Inheritance diagram for CAS_Request_MultiRequestInterface:
Collaboration diagram for CAS_Request_MultiRequestInterface:Public Member Functions | |
| addRequest (CAS_Request_RequestInterface $request) | |
| Add a new Request to this batch. More... | |
| getNumRequests () | |
| Retrieve the number of requests added to this batch. More... | |
| send () | |
| Perform the request. More... | |
This interface defines a class library for performing multiple web requests in batches.
Implementations of this interface may perform requests serially or in parallel.
Definition at line 42 of file MultiRequestInterface.php.
| CAS_Request_MultiRequestInterface::addRequest | ( | CAS_Request_RequestInterface | $request | ) |
Add a new Request to this batch.
Note, implementations will likely restrict requests to their own concrete class hierarchy.
| CAS_Request_RequestInterface | $request | request interface |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
| CAS_InvalidArgumentException | If passed a Request of the wrong implmentation. |
Reimplemented in CAS_Request_CurlMultiRequest.
| CAS_Request_MultiRequestInterface::getNumRequests | ( | ) |
Retrieve the number of requests added to this batch.
Reimplemented in CAS_Request_CurlMultiRequest.
| CAS_Request_MultiRequestInterface::send | ( | ) |
Perform the request.
After sending, all requests will have their responses poulated.
| CAS_OutOfSequenceException | If called multiple times. |
Reimplemented in CAS_Request_CurlMultiRequest.