Home « Server software «
Documentation: included/php-pdb.php
included/php-pdb.php -
Copyright (C) 2001 - PHP-PDB development team Licensed under the GNU LGPL software license. See the doc/LEGAL file for more information See http://php-pdb.sourceforge.net/ for more information about the libraryAs a note, storing all of the information as hexadecimal kinda sucks, but it is tough to store and properly manipulate a binary string in PHP. We double the size of the data but decrease the difficulty level immensely.
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
class PalmDB
PalmDB()
function PalmDB($Type = '', $Creator = '', $Name = '')
- $Type = '' -
- $Creator = '' -
- $Name = '' -
Int8()
function Int8($value)
- $value -
LoadInt8()
function LoadInt8($file)
- $file -
Int16()
function Int16($value)
- $value -
LoadInt16()
function LoadInt16($file)
- $file -
Int24()
function Int24($value)
- $value -
LoadInt24()
function LoadInt24($file)
- $file -
Int32()
function Int32($value)
- $value -
LoadInt32()
function LoadInt32($file)
- $file -
GetDoubleMethod()
function GetDoubleMethod()
Double()
function Double($value)
- $value -
LoadDouble()
function LoadDouble($file)
- $file -
DateToInt16()
function DateToInt16($date)
- $date -
Int16ToDate()
function Int16ToDate($number)
- $number -
String()
function String($value, $maxLen = false)
- $value -
- $maxLen = false -
PadString()
function PadString($value, $minLen)
- $value -
- $minLen -
GoToRecord()
function GoToRecord($num = false)
- $num = false -
GetRecordSize()
function GetRecordSize($num = false)
- $num = false -
AppendCurrent()
function AppendCurrent($value)
- $value -
AppendInt8()
function AppendInt8($value)
- $value -
AppendInt16()
function AppendInt16($value)
- $value -
AppendInt32()
function AppendInt32($value)
- $value -
AppendDouble()
function AppendDouble($value)
- $value -
AppendString()
function AppendString($value, $maxLen = false)
- $value -
- $maxLen = false -
RecordExists()
function RecordExists($Rec = false)
- $Rec = false -
GetRecord()
function GetRecord($Rec = false)
- $Rec = false -
GetRecordAttrib()
function GetRecordAttrib($Rec = false)
- $Rec = false -
GetRecordRaw()
function GetRecordRaw($Rec = false)
- $Rec = false -
SetRecordRaw()
function SetRecordRaw($A, $B = false)
- $A -
- $B = false -
SetRecordAttrib()
function SetRecordAttrib($A, $B = false)
- $A -
- $B = false -
DeleteRecord()
function DeleteRecord($RecNo = false)
- $RecNo = false -
GetRecordIDs()
function GetRecordIDs()
GetRecordCount()
function GetRecordCount()
GetAppInfoSize()
function GetAppInfoSize()
GetAppInfo()
function GetAppInfo()
GetSortInfoSize()
function GetSortInfoSize()
GetSortInfo()
function GetSortInfo()
GetCategoryList()
function GetCategoryList()
SetCategoryList()
function SetCategoryList($list)
- $list -
CreateCategoryData()
function CreateCategoryData()
LoadCategoryData()
function LoadCategoryData($fileData)
- $fileData -
PadTo4ByteBoundary()
function PadTo4ByteBoundary($string)
- $string -
MakeHeader()
function MakeHeader()
WriteToFile()
function WriteToFile($file)
- $file -
WriteToStdout()
function WriteToStdout()
DownloadPDB()
function DownloadPDB($filename)
- $filename -
ReadFile()
function ReadFile($file)
- $file -
LoadAppInfo()
function LoadAppInfo($fileData)
- $fileData -
LoadSortInfo()
function LoadSortInfo($fileData)
- $fileData -
LoadRecord()
function LoadRecord($fileData, $recordInfo)
- $fileData -
- $recordInfo -