Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_ReCaptcha_Response Class Reference

Public Member Functions

 __construct ($status=null, $errorCode=null, Zend_Http_Response $httpResponse=null)
 setStatus ($status)
 getStatus ()
 isValid ()
 setErrorCode ($errorCode)
 getErrorCode ()
 setFromHttpResponse (Zend_Http_Response $response)

Protected Attributes

 $_status = null
 $_errorCode = null

Detailed Description

Definition at line 32 of file Response.php.


Constructor & Destructor Documentation

__construct ( status = null,
errorCode = null,
Zend_Http_Response httpResponse = null 
)

Class constructor used to construct a response

Parameters:
string$status
string$errorCode
Zend_Http_Response$httpResponseIf this is set the content will override $status and $errorCode

Definition at line 60 of file Response.php.

Here is the call graph for this function:


Member Function Documentation

Get the error code

Returns:
string

Definition at line 130 of file Response.php.

getStatus ( )

Get the status

Returns:
boolean

Definition at line 97 of file Response.php.

Here is the caller graph for this function:

isValid ( )

Alias for getStatus()

Returns:
boolean

Definition at line 107 of file Response.php.

Here is the call graph for this function:

setErrorCode ( errorCode)

Set the error code

Parameters:
string$errorCode
Returns:
Zend_Service_ReCaptcha_Response

Definition at line 118 of file Response.php.

Here is the caller graph for this function:

Populate this instance based on a Zend_Http_Response object

Parameters:
Zend_Http_Response$response
Returns:
Zend_Service_ReCaptcha_Response

Definition at line 141 of file Response.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setStatus ( status)

Set the status

Parameters:
string$status
Returns:
Zend_Service_ReCaptcha_Response

Definition at line 81 of file Response.php.

Here is the caller graph for this function:


Field Documentation

$_errorCode = null [protected]

Definition at line 51 of file Response.php.

$_status = null [protected]

Definition at line 41 of file Response.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations