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 |
[edit] 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");
?>
[edit] Functions
[edit] 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.
[edit] 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.
[edit] Classes
[edit] s60_inbox_Message
This class represents a single message in the inbox of the phone.
[edit] content
content() -> string
Get message content.
[edit] time
time() -> float
Get message time of arrival.
[edit] sender
sender() -> string
Get message sender.
[edit] remove
remove()
Delete message.
