|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Provides access to a proxy-authenticated IMAP stream. More...
Inheritance diagram for CAS_ProxiedService_Imap:
Collaboration diagram for CAS_ProxiedService_Imap:Public Member Functions | |
| __construct ($username) | |
| Constructor. More... | |
| getServiceUrl () | |
| Answer a service identifier (URL) for whom we should fetch a proxy ticket. More... | |
| setServiceUrl ($url) | |
| Set the URL of the service to pass to CAS for proxy-ticket retrieval. More... | |
| setMailbox ($mailbox) | |
| Set the mailbox to open. More... | |
| setOptions ($options) | |
| Set the options for opening the stream. More... | |
| open () | |
| Open the IMAP stream (similar to imap_open()). More... | |
| getStream () | |
| Answer the IMAP stream. More... | |
| getImapProxyTicket () | |
| CAS_Client::serviceMail() needs to return the proxy ticket for some reason, so this method provides access to it. More... | |
Public Member Functions inherited from CAS_ProxiedService_Abstract | |
| setProxyTicket ($proxyTicket) | |
| Register a proxy ticket with the Proxy that it can use when making requests. More... | |
| setCasClient (CAS_Client $casClient) | |
| Use a particular CAS_Client->initializeProxiedService() rather than the static phpCAS::initializeProxiedService(). More... | |
| getServiceUrl () | |
| Answer a service identifier (URL) for whom we should fetch a proxy ticket. More... | |
| setProxyTicket ($proxyTicket) | |
| Register a proxy ticket with the ProxiedService that it can use when making requests. More... | |
| setCasClient (CAS_Client $casClient) | |
| Use a particular CAS_Client->initializeProxiedService() rather than the static phpCAS::initializeProxiedService(). More... | |
Protected Member Functions | |
| hasBeenOpened () | |
| Answer true if our request has been sent yet. More... | |
Protected Member Functions inherited from CAS_ProxiedService_Abstract | |
| getProxyTicket () | |
| Answer the proxy ticket to be used when making requests. More... | |
| initializeProxyTicket () | |
| Fetch our proxy ticket. More... | |
Private Attributes | |
| $_username | |
| The username to send via imap_open. More... | |
| $_url | |
| The target service url. More... | |
| $_mailbox | |
| The mailbox to open. More... | |
| $_options = null | |
| A bit mask of options to pass to imap_open() as the $options parameter. More... | |
| $_stream | |
| The IMAP stream. More... | |
| CAS_ProxiedService_Imap::__construct | ( | $username | ) |
Constructor.
| string | $username | Username |
Definition at line 58 of file Imap.php.
| CAS_ProxiedService_Imap::getImapProxyTicket | ( | ) |
CAS_Client::serviceMail() needs to return the proxy ticket for some reason, so this method provides access to it.
| CAS_OutOfSequenceException | If called before the stream has been opened. |
Definition at line 270 of file Imap.php.
| CAS_ProxiedService_Imap::getServiceUrl | ( | ) |
Answer a service identifier (URL) for whom we should fetch a proxy ticket.
| Exception | If no service url is available. |
Reimplemented from CAS_ProxiedService.
Definition at line 79 of file Imap.php.
References $_url.
| CAS_ProxiedService_Imap::getStream | ( | ) |
|
protected |
Answer true if our request has been sent yet.
Definition at line 232 of file Imap.php.
Referenced by open(), setMailbox(), setOptions(), and setServiceUrl().
Here is the caller graph for this function:| CAS_ProxiedService_Imap::open | ( | ) |
Open the IMAP stream (similar to imap_open()).
| CAS_OutOfSequenceException | If called multiple times. |
| CAS_ProxyTicketException | If there is a proxy-ticket failure. The code of the Exception will be one of: PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE PHPCAS_SERVICE_PT_FAILURE |
| CAS_ProxiedService_Exception | If there is a failure sending the request to the target service. |
Definition at line 192 of file Imap.php.
References hasBeenOpened(), CAS_ProxiedService_Abstract\initializeProxyTicket(), open(), phpCAS\trace(), and phpCAS\traceBegin().
Referenced by open().
Here is the call graph for this function:
Here is the caller graph for this function:| CAS_ProxiedService_Imap::setMailbox | ( | $mailbox | ) |
Set the mailbox to open.
See the $mailbox parameter of imap_open().
| string | $mailbox | Mailbox to set |
| CAS_OutOfSequenceException | If called after the stream has been opened. |
Definition at line 131 of file Imap.php.
References hasBeenOpened().
Here is the call graph for this function:| CAS_ProxiedService_Imap::setOptions | ( | $options | ) |
Set the options for opening the stream.
See the $options parameter of imap_open().
| int | $options | Options for the stream |
| CAS_OutOfSequenceException | If called after the stream has been opened. |
Definition at line 161 of file Imap.php.
References $options, and hasBeenOpened().
Here is the call graph for this function:| CAS_ProxiedService_Imap::setServiceUrl | ( | $url | ) |
Set the URL of the service to pass to CAS for proxy-ticket retrieval.
| string | $url | Url to set |
| CAS_OutOfSequenceException | If called after the stream has been opened. |
Definition at line 102 of file Imap.php.
References $url, and hasBeenOpened().
Here is the call graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |