PAMP:s60 inbox
From OpenSource
PHP API to inbox/SMS handling, partly modified from the corresponding PyS60 API. Allows manipulating of host phone's SMS inbox.
Contents |
Example Usage
<?php
echo "\n\nALL MESSAGES:\n";
echo "=========================================\n";
foreach (s60_inbox_get_messages() as $msg) {
echo " SENDER: ".$msg->sender()."\n";
echo " CONTENT: ".$msg->content()."\n";
echo " TIME: ".strftime ("%a, %d %b %Y at %H:%M:%S", $msg->time())."\n";
echo "=========================================\n";
}
//s60_inbox_send_message("hello there!", "mr.nobody");
?>
Functions
s60_inbox_send_message
s60_inbox_send_message(string message, string sender)
"Send" a message to the inbox of the host phone. Appears as an SMS.
s60_inbox_get_messages
s60_inbox_get_messages() -> array of s60_inbox_Message
Returns an array of the messages in the inbox of the host phone, ordered so that newest message is first. The returned array contains objects of type s60_inbox_Message.
Classes
s60_inbox_Message
This class represents a single message in the inbox of the phone.
content
content() -> string
Get message content.
time
time() -> float
Get message time of arrival.
sender
sender() -> string
Get message sender.
remove
remove()
Delete message.
