| Main Page |
| General |
|---|
|
Basic Use Custom Formats Extra Info Credits |
| Modules |
|
Address Book Datebook DOC List Memo Pad MobileDB SmallBASIC Todo |
| Examples |
|
Bookmark Test Spade Twister |
| SourceForge |
|
Download Project Page Mailing Lists Bug Reporting |
List databases are supported fully. You have to use the SetRecordRaw and GetRecordRaw functions currently, but that can change in the future to use a tailored function instead.
| include 'php-pdb.inc'; include 'modules/list.inc'; |
Because List databases already have a specific type and creator, you only need to specify the name of the new database.
| $DB = new PalmListDB("Name of DB"); |
This is the same as the base class. See Basic Use for more information.
This is the same as the base class. See Basic Use for more information.
List supports categories. This is the same as the base class. See Basic Use for more information.
There are no utility functions defined yet. Sorry.
All records in a List database are arrays. The first two elements can be a maximum of 63 characters. The third (and last) element is a note field and can be up to 1023 characters.
| include_once ("php-pdb.inc"); include_once ("modules/list.inc"); $pdb = new PalmListDB("New Database"); // Name the two fields $pdb->Field1 = "Name" $pdb->Field2 = "Job" // Add a few people $pdb->SetRecordRaw(array("Tyler Akins", "IT", "A really great guy.")); $pdb->GoToRecord("+1"); $pdb->SetRecordRaw(array("Madonna", "Singer")); $pdb->GoToRecord("+1"); $pdb->SetRecordRaw(array("Adam Sandler", "Entertainer", "Did a few movies, sang a few songs, got mentioned here.")); // Write to a file $fp = fopen("$ouput_file", "wb"); $pdb->WriteToFile($fp); fclose($fp); |