This method is used to access an IMAP/POP3/NNTP service.
- Parameters:
-
| $url | a string giving the URL of the service, including the mailing box for IMAP URLs, as accepted by imap_open(). |
| $service | a string giving for CAS retrieve Proxy ticket |
| $flags | options given to imap_open(). |
| $err_code | an error code Possible values are PHPCAS_SERVICE_OK (on success), PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_NOT AVAILABLE. |
| $err_msg | an error message on failure |
| $pt | the Proxy Ticket (PT) retrieved from the CAS server to access the URL on success, FALSE on error). |
- Returns:
- an IMAP stream on success, FALSE otherwise (in this later case, $err_code gives the reason why it failed and $err_msg contains an error message).
Definition at line 871 of file CAS.php.
References $service, phpCAS::error(), phpCAS::traceBegin(), and phpCAS::traceEnd().