phpCAS
version 1.4.0
|
Public Member Functions | |
addRequest (CAS_Request_RequestInterface $request) | |
getNumRequests () | |
send () | |
![]() | |
addRequest (CAS_Request_RequestInterface $request) | |
getNumRequests () | |
send () | |
Private Attributes | |
$_requests = array() | |
$_sent = false | |
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 CurlMultiRequest.php.
CAS_Request_CurlMultiRequest::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 | reqest to add |
CAS_OutOfSequenceException | If called after the Request has been sent. |
CAS_InvalidArgumentException | If passed a Request of the wrong implmentation. |
Definition at line 64 of file CurlMultiRequest.php.
CAS_Request_CurlMultiRequest::getNumRequests | ( | ) |
Retrieve the number of requests added to this batch.
CAS_OutOfSequenceException | if the request has already been sent |
Definition at line 86 of file CurlMultiRequest.php.
CAS_Request_CurlMultiRequest::send | ( | ) |
Perform the request. After sending, all requests will have their responses poulated.
CAS_OutOfSequenceException | If called multiple times. |
Definition at line 107 of file CurlMultiRequest.php.
|
private |
Definition at line 45 of file CurlMultiRequest.php.
|
private |
Definition at line 46 of file CurlMultiRequest.php.