phpCAS
version 1.4.0
|
Public Member Functions | |
__construct ($username) | |
getServiceUrl () | |
setServiceUrl ($url) | |
setMailbox ($mailbox) | |
setOptions ($options) | |
open () | |
getStream () | |
getImapProxyTicket () | |
![]() | |
setProxyTicket ($proxyTicket) | |
setCasClient (CAS_Client $casClient) | |
![]() | |
getServiceUrl () | |
setProxyTicket ($proxyTicket) | |
Protected Member Functions | |
hasBeenOpened () | |
![]() | |
getProxyTicket () | |
initializeProxyTicket () | |
Private Attributes | |
$_username | |
$_url | |
$_mailbox | |
$_options = null | |
$_stream | |
CAS_ProxiedService_Imap::__construct | ( | $username | ) |
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. |
CAS_ProxiedService_Imap::getServiceUrl | ( | ) |
CAS_ProxiedService_Imap::getStream | ( | ) |
Answer the IMAP stream
CAS_OutOfSequenceException | if stream is not opened yet |
|
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().
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(), phpCAS\trace(), and phpCAS\traceBegin().
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().
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 hasBeenOpened().
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 hasBeenOpened().
|
private |
|
private |
|
private |
|
private |