\Aculab\WebServicesWrapperMessageStatusUpdate

SMS/MMS message update handler.

This class is used to extract message status information from the HTTP request to a message status page.

The \Aculab\WebServicesWrapper\MessageStatusUpdate::getMessageStatusUpdate() function returns a MessageStatusUpdate object containing the details extracted from the HTTP request.

Summary

Methods
Properties
Constants
getMessageType()
getStatus()
getFailureCause()
getMultipartUid()
getMultipartPos()
getMultipartCount()
getTimestamp()
getAculabErrorMessage()
getMessageStatusUpdate()
getMsgRef()
getTo()
getFrom()
getDirection()
getContent()
getMsgMedia()
No public properties found
QUEUED
CANCELLED
SUBMITTED_TO_CARRIER
SENT
DELIVERED
ACCEPTED
FAILED
RECEIVED
UNKNOWN
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

QUEUED

QUEUED

The message is queued for sending.

CANCELLED

CANCELLED

The message has been cancelled using msg_cancel.

SUBMITTED_TO_CARRIER

SUBMITTED_TO_CARRIER

The message has been submitted to the carrier.

SENT

SENT

The message has been sent by the carrier.

DELIVERED

DELIVERED

The carrier has reported delivery to the phone with number "to".

Note that delivery is reported only if supported by the carrier and request_delivery_report was specified when calling msg_send.

ACCEPTED

ACCEPTED

The message has been read on behalf of the phone onwer by someone else.

Note that acceptance is reported only if supported by the carrier and request_delivery_report was specified when calling msg_send.

FAILED

FAILED

There was a problem sending the message. The textual reason from getFailureCause() explains why.

RECEIVED

RECEIVED

The message was received from the carrier.

UNKNOWN

UNKNOWN

The message reference passed was not recognised.

Methods

getMessageType()

getMessageType() : string

Get the type of the message part.

Returns

string

getStatus()

getStatus() : string

Get the status of the message part.

Returns

string —

One of the constants listed.

getFailureCause()

getFailureCause() : string

Get the failure cause.

Returns

string —

Returns the failure cause where available, otherwise an empty string.

getMultipartUid()

getMultipartUid() : string

Get the multipart message UID.

Get the ID for the overall message, shared by all its parts, which is unique among all recent messages in this direction.

Returns

string

getMultipartPos()

getMultipartPos() : integer

Get the position of this message part in the overall message.

Gets the position of this message part within the overall message, 1...multipart_count.

Returns

integer

getMultipartCount()

getMultipartCount() : integer

Get the number of message parts in the overall message.

Gets the number of message parts within the overall message.

Returns

integer

getTimestamp()

getTimestamp() : \DateTime

Get when the status was last updated.

Returns

\DateTime

getAculabErrorMessage()

getAculabErrorMessage() : string

Get message status detail code.

Gets a numerical string representing more detailed information about the message status. Detailed information is only available on selected carriers, and will default to "001" if no further information available.

Returns

string

getMessageStatusUpdate()

getMessageStatusUpdate() : \Aculab\WebServicesWrapper\MessageStatusUpdate|null

Extract the message update from the HTTP request to a message status page.

Returns

\Aculab\WebServicesWrapper\MessageStatusUpdate|null

getMsgRef()

getMsgRef() : string

Get the message reference.

Gets the unique reference ID for this message. If it's a sent message, it was returned by msg_send.

Returns

string

getTo()

getTo() : string

Get the number receiving the message.

Gets the number of the phone receiving the message. A full international number without any leading +.

Returns

string

getFrom()

getFrom() : string

Get the number sending the message.

Gets the number of the phone sending the message. A full international number without any leading +.

Returns

string

getDirection()

getDirection() : string

Get the direction of the message.

"send" if the message is being sent from Aculab Cloud, "receive" if it's being received.

Returns

string

getContent()

getContent() : string

Get the content of the message.

Gets the content of the message, encoded as UTF-8. (Received messages only.)

Returns

string

getMsgMedia()

getMsgMedia() : array|null

Get the media included in the message.

Gets an array of filenames of the media included in the message. (Received messages only.)

Returns

array|null