Base | --Response
Located in File: Program_Root/sdk/protocol/receive/Response.php
This class represents a response to a received SMS or Notification.
Magnus Rosenquist, Zyneo
Class Variable Summary |
$STATUS_FAIL
Constant for defining this response as failed Default Value:
|
$STATUS_SUCCESS
Constant for defining this response as successful Default Value:
|
$__errorCode
Error code for this response Default Value:
|
$__errorMessage
Error message for this response Default Value:
|
$__status
Current status of this response Default Value:
|
Inherited Class Variable Summary | |||||||||||||||||||||
Inherited From Class Base
|
Method Summary |
void constructor Response ( )
Creates a new Response, status defaulting to STATUS_SUCCCESS. |
void setErrorCode ( $code )
When status = STATUS_FAIL, set an error-code. |
void setErrorMessage ( $msg )
When status = STATUS_FAIL, set an error-message |
void setStatus ( $status )
Sets status for this response, use STATUS_SUCCESS or STATUS_FAIL to set valid status. |
string toXML ( )
Serializes this Response into an XML string. |
Inherited Method Summary |
Inherited From Class Base
|
Method Detail |
void Response( )
Creates a new Response, status defaulting to STATUS_SUCCCESS.[ Top ]
void setErrorCode( string $code)
When status = STATUS_FAIL, set an error-code.- string $code:
[ Top ]
void setErrorMessage( string $msg)
When status = STATUS_FAIL, set an error-message- string $msg:
[ Top ]
void setStatus( string $status)
Sets status for this response, use STATUS_SUCCESS or STATUS_FAIL to set valid status.- string $status:
[ Top ]
string toXML( )
Serializes this Response into an XML string.[ Top ]
Variable Detail |
[ Top ]
[ Top ]
[ Top ]
[ Top ]
[ Top ]