Base | --Request
Located in File: Program_Root/sdk/protocol/receive/Request.php
This class represents a 'request' sent from the gateway. A request can either be an incoming SMS or an incoming notification for an SMS.
Magnus Rosenquist, Zyneo
Class Variable Summary |
$TYPE_NOT
Constant for defining this request as a Notification Default Value:
|
$TYPE_SMS
Constant for defining this request as an SMS Default Value:
|
$__currentTag
Current tag processing when parsing XML Default Value:
|
$__raw
Raw response data (XML) Default Value:
|
$__request
The request object Default Value:
|
$__type
Request type Default Value:
|
Inherited Class Variable Summary | |||||||||||||||||||||
Inherited From Class Base
|
Method Summary |
void constructor Request ( $input )
Creates a new Request object with the desired content ($input) and parses the XML. |
void attrNot ( $attrs )
Manages attributes concerning Notifications |
void attrSMS ( $attrs )
Manages attributes concerning SMS |
void characterData ( $parser, $data )
Parses character data |
void charNotification ( $data )
Parses character data for a Notification, for now it is empty. |
void charSMS ( $data )
Parses character data for an SMS |
void endElement ( $parser, $name )
|
string getRawData ( )
Returns the request in it's raw XML-form |
mixed getRequest ( )
Returns the request as the object contained in the request, which can be an Sms or a Notification. To find out which use 'getRequestType'. |
string getRequestType ( )
Returns the type for this request, one of 'sms' and 'notification' |
void parse ( )
Parses the incoming XML-request. |
void parseAttributes ( $attrs )
Parses attributes for a tag. |
void startElement ( $parser, $name, $attrs )
|
Inherited Method Summary |
Inherited From Class Base
|
Method Detail |
void Request( string $input)
Creates a new Request object with the desired content ($input) and parses the XML.- string $input: xml string containing the request.
[ Top ]
void attrNot( mixed $attrs)
Manages attributes concerning Notifications[ Top ]
void attrSMS( mixed $attrs)
Manages attributes concerning SMS[ Top ]
void characterData( mixed $parser, mixed $data)
Parses character data[ Top ]
void charNotification( mixed $data)
Parses character data for a Notification, for now it is empty.[ Top ]
void charSMS( mixed $data)
Parses character data for an SMS[ Top ]
void endElement( mixed $parser, mixed $name)
[ Top ]
string getRawData( )
Returns the request in it's raw XML-formxml request
[ Top ]
mixed getRequest( )
Returns the request as the object contained in the request, which can be an Sms or a Notification. To find out which use 'getRequestType'.either an Sms object or a Notification
Notification
Sms
[ Top ]
string getRequestType( )
Returns the type for this request, one of 'sms' and 'notification'the request type.
[ Top ]
void parse( )
Parses the incoming XML-request.[ Top ]
void parseAttributes( mixed $attrs)
Parses attributes for a tag.[ Top ]
void startElement( mixed $parser, mixed $name, mixed $attrs)
[ Top ]
Variable Detail |
[ Top ]
[ Top ]
[ Top ]
[ Top ]
[ Top ]
[ Top ]