Index of All Elements

Indexes by package:
sdk.client
PHPSDK
sdk
sdk.server
adapter.socket
adapter.protocol.send
sdk.protocol.receive
adapter.protocol.receive
adapter.protocol
base

a b c d e f g i l m n o p r s t u v _
  top
a
addEventListenerin file Server.php, method Server::addEventListener()
    Adds the listener which is called when requests are received.
addMessageListenerin file ServerSocket.php, method ServerSocket::addMessageListener()
    Adds the listener which is called when requests are received.
attrNotin file Request.php, method Request::attrNot()
    Manages attributes concerning Notifications
attrSMSin file Request.php, method Request::attrSMS()
    Manages attributes concerning SMS
  top
b
Basein file Base.php, method Base::Base()
Basein file Base.php, class Base
    $Id: Base.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
Base.phpprocedural page Base.php
  top
c
$clazzin file Base.php, variable Base::$clazz
characterDatain file SendResponse.php, method SendResponse::characterData()
characterDatain file Request.php, method Request::characterData()
    Parses character data
charNotificationin file Request.php, method Request::charNotification()
    Parses character data for a Notification, for now it is empty.
charSMSin file Request.php, method Request::charSMS()
    Parses character data for an SMS
Clientin file Client.php, method Client::Client()
Clientin file Client.php, class Client
    $Id: Client.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
ClientSocketin file ClientSocket.php, class ClientSocket
    $Id: ClientSocket.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
ClientSocketin file ClientSocket.php, method ClientSocket::ClientSocket()
    Creates a new ClientSocket for use with specified host and port
config.incprocedural page config.inc
Client.phpprocedural page Client.php
ClientSocket.phpprocedural page ClientSocket.php
  top
d
dbgin file Base.php, method Base::dbg()
  top
e
endElementin file SendResponse.php, method SendResponse::endElement()
endElementin file Request.php, method Request::endElement()
  top
f
formatLongDatein file Base.php, method Base::formatLongDate()
formatLongDateTimein file Base.php, method Base::formatLongDateTime()
formatShortDatein file Base.php, method Base::formatShortDate()
formatShortDateTimein file Base.php, method Base::formatShortDateTime()
  top
g
GatewayListenerin file GatewayListener.php, method GatewayListener::GatewayListener()
    Initializes the class
GatewayListenerin file GatewayListener.php, class GatewayListener
    $Id: GatewayListener.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
GatewaySenderin file GatewaySender.php, class GatewaySender
    $Id: GatewaySender.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
GatewaySenderin file GatewaySender.php, method GatewaySender::GatewaySender()
getDeliveredin file Sms.php, method Sms::getDelivered()
    Returns the date the SMS was delivered to the gateway.
getErrorCodein file SendResponse.php, method SendResponse::getErrorCode()
    Returns the error-code for the message if unsuccessful send.
getErrorMessagein file SendResponse.php, method SendResponse::getErrorMessage()
    Returns the error-message for the message if unsuccessful send.
getFromin file Sms.php, method Sms::getFrom()
    Returns the originator for this SMS.
getMessagein file Sms.php, method Sms::getMessage()
    Returns the message-text for this SMS.
getMessageIdin file SendResponse.php, method SendResponse::getMessageId()
    Returns the message-id for the message if successful send.
getMessageIdin file Notification.php, method Notification::getMessageId()
    Returns the message-id for this notification.
getNotificationTypein file Notification.php, method Notification::getNotificationType()
    Returns the Notification type
getNotificationTypeTextin file Notification.php, method Notification::getNotificationTypeText()
    Returns the Notification type in clear-text
getProviderDatein file Notification.php, method Notification::getProviderDate()
    Returns the date this provider received the notification.
getRawDatain file Request.php, method Request::getRawData()
    Returns the request in it's raw XML-form
getRequestin file Request.php, method Request::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'.
getRequestTypein file Request.php, method Request::getRequestType()
    Returns the type for this request, one of 'sms' and 'notification'
getResponseTypein file SendResponse.php, method SendResponse::getResponseType()
    Returns the response-type for the sent message
getStatusin file SendResponse.php, method SendResponse::getStatus()
    Returns the status of the response which is one of STATUS_SUCCESS or STATUS_FAIL.
getStatusReportingin file Sms.php, method Sms::getStatusReporting()
    Returns 'true/false' if statusreporting is enabled for this SMS.
getToin file Sms.php, method Sms::getTo()
    Returns the recipient for this SMS
getValidToin file Sms.php, method Sms::getValidTo()
    Returns the valid-to date for this message
GatewayListener.phpprocedural page GatewayListener.php
GatewaySender.phpprocedural page GatewaySender.php
  top
i
invalidMessagein file Client.php, method Client::invalidMessage()
invalidMobilein file Client.php, method Client::invalidMobile()
index.phpprocedural page index.php
  top
l
$logFilein file Base.php, variable Base::$logFile
$loglevelin file Base.php, variable Base::$loglevel
    debug - logstatements above and including 'debug' are printed.
$loglevelsin file Base.php, variable Base::$loglevels
$logoutputin file Base.php, variable Base::$logoutput
    0 - log to screen
listener.phpprocedural page listener.php
listenin file ServerSocket.php, method ServerSocket::listen()
    Listens on specified host and port for incoming requests from gateway.
logDebugin file Base.php, method Base::logDebug()
logFatalin file Base.php, method Base::logFatal()
logInfoin file Base.php, method Base::logInfo()
logInfoin file sender.php, function logInfo()
logWarnin file Base.php, method Base::logWarn()
  top
m
$methodin file Base.php, variable Base::$method
mainin file sender.php, function main()
  top
n
Notificationin file Notification.php, method Notification::Notification()
Notificationin file Notification.php, class Notification
    $Id: Notification.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
Notification.phpprocedural page Notification.php
notification-handler.phpprocedural page notification-handler.php
  top
o
onMessageReceivein file Server.php, method Server::onMessageReceive()
    This function is called when the ServerSocket receives an incoming message. The message is parsed and depending on request-type different call-back methods are called, either 'onSMSReceive' or 'onNotificationReceive'.
onNotificationReceivein file GatewayListener.php, method GatewayListener::onNotificationReceive()
    Called when a Notification is received. As specified in the XML/TCP adapter documentation, an incoming Notification must be acknowledged. This is achieved by creating a sdk.protocol.receive.Response object and send it back to the gateway.
onSMSReceivein file GatewayListener.php, method GatewayListener::onSMSReceive()
    Called when an SMS is received. As specified in the XML/TCP adapter documentation, an incoming SMS must be acknowledged. This is achieved by creating a sdk.protocol.receive.Response object and send it back to the gateway.
  top
p
parsein file Request.php, method Request::parse()
    Parses the incoming XML-request.
parsein file SendResponse.php, method SendResponse::parse()
    Parses the response from the gateway.
parseAttributesin file Request.php, method Request::parseAttributes()
    Parses attributes for a tag.
parseAttributesin file SendResponse.php, method SendResponse::parseAttributes()
    Parses the attributes for the current tag
printNotin file view-sms.php, function printNot()
printSMSin file view-sms.php, function printSMS()
    $Id: view-sms.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
  top
r
registerClassin file Base.php, method Base::registerClass()
registerMethodin file Base.php, method Base::registerMethod()
Requestin file Request.php, method Request::Request()
    Creates a new Request object with the desired content ($input) and parses the XML.
Requestin file Request.php, class Request
    $Id: Request.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
Responsein file Response.php, method Response::Response()
    Creates a new Response, status defaulting to STATUS_SUCCCESS.
Responsein file Response.php, class Response
    $Id: Response.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
runin file GatewayListener.php, method GatewayListener::run()
    Starts the GatewayListener and listens for incoming SMS and
runin file Server.php, method Server::run()
    Starts the server, which connects to the gateway and listens for requests.
Request.phpprocedural page Request.php
Response.phpprocedural page Response.php
  top
s
$serverin file GatewayListener.php, variable GatewayListener::$server
$STATUS_FAILin file SendResponse.php, variable SendResponse::$STATUS_FAIL
    Constant for defining this Response as failed.
$STATUS_FAILin file Response.php, variable Response::$STATUS_FAIL
    Constant for defining this response as failed
$STATUS_REPORT_NOin file Sms.php, variable Sms::$STATUS_REPORT_NO
$STATUS_REPORT_YESin file Sms.php, variable Sms::$STATUS_REPORT_YES
$STATUS_SUCCESSin file SendResponse.php, variable SendResponse::$STATUS_SUCCESS
    Constant for defining this Response as successful
$STATUS_SUCCESSin file Response.php, variable Response::$STATUS_SUCCESS
    Constant for defining this response as successful
sender.phpprocedural page sender.php
SendRequest.phpprocedural page SendRequest.php
SendResponse.phpprocedural page SendResponse.php
Sms.phpprocedural page Sms.php
Server.phpprocedural page Server.php
ServerSocket.phpprocedural page ServerSocket.php
sendin file Client.php, method Client::send()
    Sends a simple sms and returns the response from the gateway
sendin file ClientSocket.php, method ClientSocket::send()
    Sends a message to the desired host/port and reads the response from the socket and returns this to the calling app.
sendin file ServerSocket.php, method ServerSocket::send()
    Sends a message back to the gateway using the connected socket.
SendRequestin file SendRequest.php, method SendRequest::SendRequest()
    Creates a new Request to send an SMS message.
SendRequestin file SendRequest.php, class SendRequest
    $Id: SendRequest.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
sendResponsein file Server.php, method Server::sendResponse()
    Sends a Response object back to the gateway.
SendResponsein file SendResponse.php, class SendResponse
    $Id: SendResponse.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
SendResponsein file SendResponse.php, method SendResponse::SendResponse()
    Creates a new SendResponse, if param $xml is provided the response is parsed. If $xml is omitted, an empty SendResponse is created.
sendSimpleSMSin file GatewaySender.php, method GatewaySender::sendSimpleSMS()
    Sends a simple sms and checks the response from the gateway
sendSMSin file index.php, function sendSMS()
    $Id: index.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
sendSMSin file GatewaySender.php, method GatewaySender::sendSMS()
    Sends an SMS and checks the response from the gateway
Serverin file Server.php, class Server
    $Id: Server.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
Serverin file Server.php, method Server::Server()
    Creates a new Server
ServerSocketin file ServerSocket.php, method ServerSocket::ServerSocket()
    Creates a new ServerSocket for use with specified host and port
ServerSocketin file ServerSocket.php, class ServerSocket
    $Id: ServerSocket.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
setDeliveredin file Sms.php, method Sms::setDelivered()
    Sets the date the SMS was delivered, only used by the gateway.
setErrorCodein file Response.php, method Response::setErrorCode()
    When status = STATUS_FAIL, set an error-code.
setErrorCodein file SendResponse.php, method SendResponse::setErrorCode()
    Sets the error-code for the message in case of failure.
setErrorMessagein file Response.php, method Response::setErrorMessage()
    When status = STATUS_FAIL, set an error-message
setErrorMessagein file SendResponse.php, method SendResponse::setErrorMessage()
    Sets the error-message for the message in case of failure.
setFromin file Sms.php, method Sms::setFrom()
    Sets the originator mobilephonenumber. Note that the settings in the gateway may override the originator.
setLoglevelin file Base.php, method Base::setLoglevel()
setMessagein file Sms.php, method Sms::setMessage()
    Sets the text for this SMS.
setMessageIdin file SendResponse.php, method SendResponse::setMessageId()
    Sets the message-id for the message
setMessageIdin file Notification.php, method Notification::setMessageId()
    Sets the message id for this Notification.
setNotificationTypein file Notification.php, method Notification::setNotificationType()
    Sets the notification type for this Notification.
setProviderDatein file Notification.php, method Notification::setProviderDate()
    Sets the provider date for this Notification. This is the date this notification was received from the Provider.
setResponseTypein file SendResponse.php, method SendResponse::setResponseType()
    Sets the response type for the message
setStatusin file SendResponse.php, method SendResponse::setStatus()
    Sets the status of the response
setStatusin file Response.php, method Response::setStatus()
    Sets status for this response, use STATUS_SUCCESS or STATUS_FAIL to set valid status.
setStatusReportingin file Sms.php, method Sms::setStatusReporting()
    Sets if Notifications should be returned for this SMS, defaults to 'false'.
setToin file Sms.php, method Sms::setTo()
    Sets the recipient mobilephonenumber.
setValidToin file Sms.php, method Sms::setValidTo()
    If the recipient is unreachable, the validTo date specifies how long the SMSc should continue trying to deliver the SMS.
Smsin file Sms.php, method Sms::Sms()
    Creates a new Sms object with a default to-address (recipient) and a message to be sent.
Smsin file Sms.php, class Sms
    $Id: Sms.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $
startin file listener.php, function start()
    $Id: listener.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
startElementin file SendResponse.php, method SendResponse::startElement()
startElementin file Request.php, method Request::startElement()
storeNotin file notification-handler.php, function storeNot()
    $Id: notification-handler.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
storeSMSin file sms-handler.php, function storeSMS()
    $Id: sms-handler.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
sms-handler.phpprocedural page sms-handler.php
  top
t
$TYPE_NOTin file Request.php, variable Request::$TYPE_NOT
    Constant for defining this request as a Notification
$TYPE_SMSin file Request.php, variable Request::$TYPE_SMS
    Constant for defining this request as an SMS
toFilein file Base.php, method Base::toFile()
toScreenin file Base.php, method Base::toScreen()
toXMLin file SendResponse.php, method SendResponse::toXML()
    Serializes the response into an XML string.
toXMLin file Response.php, method Response::toXML()
    Serializes this Response into an XML string.
toXMLin file SendRequest.php, method SendRequest::toXML()
    Serializes this Request into an XML string.
  top
u
usagein file sender.php, function usage()
    $Id: sender.php,v 1.1.1.1 2003/03/27 10:27:43 maro Exp $
  top
v
validateMessagein file Sms.php, method Sms::validateMessage()
validateMobilein file Sms.php, method Sms::validateMobile()
view-sms.phpprocedural page view-sms.php
  top
_
$__currentTagin file SendResponse.php, variable SendResponse::$__currentTag
    Current tag when processing the XML
$__currentTagin file Request.php, variable Request::$__currentTag
    Current tag processing when parsing XML
$__datein file Notification.php, variable Notification::$__date
$__deliveredin file Sms.php, variable Sms::$__delivered
    Date reported by the SMSc when the SMS was delivered
$__errorCodein file SendResponse.php, variable SendResponse::$__errorCode
    Error code for the Response
$__errorCodein file Response.php, variable Response::$__errorCode
    Error code for this response
$__errorMessagein file Response.php, variable Response::$__errorMessage
    Error message for this response
$__errorMsgin file SendResponse.php, variable SendResponse::$__errorMsg
    Error message for the Response
$__fromin file Sms.php, variable Sms::$__from
    SMS from, originator of message
$__hostin file ServerSocket.php, variable ServerSocket::$__host
    Host to connect to
$__hostin file ClientSocket.php, variable ClientSocket::$__host
    Host to connect to
$__listenerin file ServerSocket.php, variable ServerSocket::$__listener
    Listener object for callbacks
$__listenerin file Server.php, variable Server::$__listener
    Listener object for callbacks
$__messagein file Sms.php, variable Sms::$__message
    SMS text
$__messageIdin file SendResponse.php, variable SendResponse::$__messageId
    Message id for this Response
$__msgIdin file Notification.php, variable Notification::$__msgId
$__portin file ServerSocket.php, variable ServerSocket::$__port
    Port to connect to
$__portin file ClientSocket.php, variable ClientSocket::$__port
    Port to connect to
$__rawin file SendResponse.php, variable SendResponse::$__raw
    Raw data representing the Response (XML)
$__rawin file Request.php, variable Request::$__raw
    Raw response data (XML)
$__requestin file Request.php, variable Request::$__request
    The request object
$__smsin file SendRequest.php, variable SendRequest::$__sms
    The SMS object for this Request
$__socketin file Client.php, variable Client::$__socket
$__socketin file ServerSocket.php, variable ServerSocket::$__socket
    The listening socket
$__socketin file Server.php, variable Server::$__socket
    The listening socket
$__statusin file SendResponse.php, variable SendResponse::$__status
    Status of the Response
$__statusin file Response.php, variable Response::$__status
    Current status of this response
$__statusReportingin file Sms.php, variable Sms::$__statusReporting
    If status reporting for this message is wanted, string ("true"/"false")
$__toin file Sms.php, variable Sms::$__to
    SMS recipient
$__typein file Notification.php, variable Notification::$__type
$__typein file SendResponse.php, variable SendResponse::$__type
    Type of Response
$__typein file Request.php, variable Request::$__type
    Request type
$__type_textin file Notification.php, variable Notification::$__type_text
$__validToin file Sms.php, variable Sms::$__validTo
    Specifies the date when the SMSc should stop try to deliver the
_DEBUG_FILEin file config.inc, constant _DEBUG_FILE
    Defines the logfile when output is set to 1 or 2
_DEBUG_LEVELin file config.inc, constant _DEBUG_LEVEL
    Defines the level of output from the scripts
_DEBUG_OUTPUTin file config.inc, constant _DEBUG_OUTPUT
    Defines how logoutput should be presented.
_DOCROOTin file config.inc, constant _DOCROOT
_LISTENER_HOSTin file config.inc, constant _LISTENER_HOST
    Defines the host used when connecting to the gateway to receive SMS and notifications
_LISTENER_PORTin file config.inc, constant _LISTENER_PORT
    Defines the port used when connecting to the gateway to receive SMS/not
_SEND_HOSTin file config.inc, constant _SEND_HOST
    Defines the host used when connecting to the gateway to send SMS
_SEND_PORTin file config.inc, constant _SEND_PORT
    Defines the port used when connecting to the gateway to send SMS