From OpenSource
Function List
s60_inbox:
$objects = s60_inbox_get_messages()
$object->content()
$object->time()
$object->flags()
$object->sender()
$object->remove()
s60_inbox_send_message(TEXT,FROM);
s60_pathinfo:
s60_rom_root_path()
s60_phone_memory_root_path()
s60_memory_card_path()
s60_games_path()
s60_installs_path()
s60_others_path()
s60_videos_path()
s60_images_path()
s60_pictures_path()
s60_gms_pictures_path()
s60_mms_background_images_path()
s60_presence_logos_path()
s60_sounds_path()
s60_digital_sounds_path()
s60_simple_sounds_path()
s60_images_thumbnail_path()
s60_memory_card_contacts_path()
s60_log:
set_filter()
first_entry()
next_entry()
last_entry()
prev_entry()
s60_position: // Useless without location acquisition daemon
s60_loc_available()
s60_loc_position()
s60_loc_speed()
s60_loc_extract_position_data(DATA)
s60_sysinfo:
s60_sysinfo_os_version()
s60_sysinfo_sw_version()
s60_sysinfo_sw_platform()
s60_sysinfo_device_model()
s60_sysinfo_ram_total()
s60_sysinfo_ram_free()
s60_sysinfo_rom_total()
s60_sysinfo_drive_free()
s60_sysinfo_display_twips()
s60_sysinfo_display_pixels()
s60_sysinfo_battery()
s60_sysinfo_battery_max()
s60_sysinfo_signal()
s60_sysinfo_signal_max()
s60_sysinfo_imei()
s60_sysinfo_in_emulator()
s60_sysinfo_current_profile()
s60_message_query(TEXT)
s60_contacts: // Some parameters are missing from functions
$object = s60_contacts_open()
$contact_object = $object->add_contact()
$contact_object = $object->contacts()
$field_object = $contact_object->add_field(FIELD_TYPE)
$field_object->set_value("value")
$contact_object->commit()
$contact_object->remove()
$contact_object->id()
$contact_object->title()
$contact_object->last_modified()
$field_objects = $contact_object->fields()
$field_object->label()
$field_object->value()
$field_object->type()
$field_object->set_label()
$field_object->set_value()
$field_object->remove()
$type = $field_object->type()
$type->name()
$type->id()
$type->location()
$type->storage_type()
$type->multi()
$type->is_phone_number()
$type->is_email()
$type->is_email_over_sms()
$type->is_mms()
$type->is_image()
$type->is_editable()
$type->is_addable()
$type->get_add_label()
FIELD_CONSTANTS:
S60_CONTACTS_NONE
S60_CONTACTS_LAST_NAME
S60_CONTACTS_FIRST_NAME
S60_CONTACTS_PHONE_GENERAL
S60_CONTACTS_PHONE_STANDARD
S60_CONTACTS_PHONE_HOME
S60_CONTACTS_PHONE_WORK
S60_CONTACTS_PHONE_MOBILE
S60_CONTACTS_FAX
S60_CONTACTS_PAGER
S60_CONTACTS_EMAIL
S60_CONTACTS_POSTAL_ADDRESS
S60_CONTACTS_URL
S60_CONTACTS_JOB_TITLE
S60_CONTACTS_COMPANY_NAME
S60_CONTACTS_COMPANY_ADDRESS
S60_CONTACTS_DTMF_STRING
S60_CONTACTS_DATE
S60_CONTACTS_NOTE
S60_CONTACTS_PO_BOX
S60_CONTACTS_EXTENDED_ADDDRESS
S60_CONTACTS_STREET_ADDRESS
S60_CONTACTS_POSTAL_CODE
S60_CONTACTS_CITY
S60_CONTACTS_STATE
S60_CONTACTS_COUNTRY
S60_CONTACTS_WVID
S60_CONTACTS_LOCATION_NONE
S60_CONTACTS_LOCATION_HOME
S60_CONTACTS_LOCATION_WORK
S60_CONTACTS_STORAGE_TEXT
S60_CONTACTS_STORAGE_STORE
S60_CONTACTS_STORAGE_CONTACT
S60_CONTACTS_STORAGE_TIME
S60_CONTACTS_MULTI_ONE
S60_CONTACTS_MULTI_MANY
s60_calendar: // Some parameters are missing from functions
$object = s60_calendar_open()
$object->open()
$object->close()
$object->get_entry()
$object->add_entry()
$object->entries()
$object->find_instances_month()
$object->find_instances_day()
$object->find_instances_range()
$object->get_todo_list()
$object->add_todo_list()
$object->todo_lists()
$entry = $object->get_entry()
$entry->remove()
$entry->commit()
$entry->id()
$entry->type()
$entry->last_modified()
$entry->content()
$entry->set_content()
$entry->location()
$entry->set_location()
$entry->replication()
$entry->set_replication()
$entry->start_time()
$entry->end_time()
$entry->set_start_end_time()
$entry->alarm()
$entry->set_alarm()
$entry->crossed_out()
$entry->set_crossed_out()
$entry->todo_list()
$entry->set_todo_list()
$entry->priority()
$entry->set_priority()
$entry->repeat()
$entry->set_repeat()
$entry->status()
$entry->set_status()
$todo = $object->get_todo_list()
$todo->todos()
$todo->id()
$todo->name()
$todo->set_name()
$todo->remove()
$inst = $object->find_instances_moth()
$inst->entry()
$inst->date()
$inst->remove()
ENTRY TYPES:
S60_CALENDAR_TYPE_MEETING
S60_CALENDAR_TYPE_EVENT
S60_CALENDAR_TYPE_ANNIV
S60_CALENDAR_TYPE_TODO
S60_CALENDAR_TYPE_REMINDER
FILTER TYPES:
S60_CALENDAR_FILTER_MEETING
S60_CALENDAR_FILTER_EVENT
S60_CALENDAR_FILTER_ANNIV
S60_CALENDAR_FILTER_TODO
S60_CALENDAR_FILTER_REMINDER
REPLICATION TYPES:
S60_CALENDAR_REP_OPEN
S60_CALENDAR_REP_PRIVATE
S60_CALENDAR_REP_RESTRICTED
REMOVE INSTANCE TYPES:
S60_CALENDAR_REMOVE_THIS
S60_CALENDAR_REMOVE_FUTURE
S60_CALENDAR_REMOVE_PAST
STATUS TYPES:
S60_CALENDAR_STATUS_CANCELLED
S60_CALENDAR_STATUS_TODO_NEED_ACTION
S60_CALENDAR_STATUS_TODO_COMPLETED
S60_CALENDAR_STATUS_TODO_IN_PROGRESS
S60_CALENDAR_STATUS_TENTATIVE
S60_CALENDAR_STATUS_CONFIRMED
S60_CALENDAR_STATUS_NULL
Examples
//s60_inbox
<?php
foreach (s60_inbox_get_messages() as $msg) {
print 'From: '.$msg->sender()."<br/>\n";
print 'Content: '.$msg->content()."<br/>\n";
print 'When: '.strftime ("%x %X", $msg->time())."<br/>\n";
print '<hr/>';
}
?>
//s60_log
<?php
print '<pre>';
set_filter();
$entry = first_entry();
print_r($entry);
while($entry = next_entry()){ print_r($entry); }
print '</pre>';
?>
//s60_calendar
<?php
$db = s60_calendar_open();
print '<ul>';
foreach($db->entries() as $e){
print '<li>'.$e->content().'@'.$e->location().'</li>';
}
print '</ul>';
?>
//s60_sysinfo
<?php
$ret = s60_message_query("This message appears on phone's screen.");
print $ret;
?>