Moodle  2.2.1
http://www.collinsharper.com
Access to external services
Collaboration diagram for Access to external services:

Enumerations

enum  PHPCAS_SERVICE_OK
enum  PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
enum  PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE
enum  PHPCAS_SERVICE_PT_FAILURE
enum  AVAILABLE

Functions

 serviceWeb ($url, &$err_code, &$output)
 serviceMail ($url, $service, $flags, &$err_code, &$err_msg, &$pt)

Enumeration Type Documentation

enum AVAILABLE

phpCAS::service() error code when the service was not available.

Definition at line 193 of file CAS.php.

phpCAS::service() error code on success

Definition at line 174 of file CAS.php.

phpCAS::service() error code when the PT could not retrieve because the response of the CAS server was ill-formed.

Definition at line 184 of file CAS.php.

phpCAS::service() error code when the PT could not retrieve because the CAS server did not want to.

Definition at line 189 of file CAS.php.

phpCAS::service() error code when the PT could not retrieve because the CAS server did not respond.

Definition at line 179 of file CAS.php.


Function Documentation

serviceMail ( url,
service,
flags,
&$  err_code,
&$  err_msg,
&$  pt 
)

This method is used to access an IMAP/POP3/NNTP service.

Parameters:
$urla string giving the URL of the service, including the mailing box for IMAP URLs, as accepted by imap_open().
$servicea string giving for CAS retrieve Proxy ticket
$flagsoptions given to imap_open().
$err_codean 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_msgan error message on failure
$ptthe 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 795 of file CAS.php.

Here is the call graph for this function:

serviceWeb ( url,
&$  err_code,
&$  output 
)

This method is used to access an HTTP[S] service.

Parameters:
$urlthe service to access.
$err_codean 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.
$outputthe output of the service (also used to give an error message on failure).
Returns:
TRUE on success, FALSE otherwise (in this later case, $err_code gives the reason why it failed and $output contains an error message).

Definition at line 752 of file CAS.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations