From 4188f38ad56d7ba2ea46e94403f305243514f80c Mon Sep 17 00:00:00 2001 From: tcit Date: Thu, 24 Jul 2014 15:49:36 +0200 Subject: add pdf and mobi libraries --- .../libraries/send2kindle/MOBIClass/PEOFRecord.php | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 inc/3rdparty/libraries/send2kindle/MOBIClass/PEOFRecord.php (limited to 'inc/3rdparty/libraries/send2kindle/MOBIClass/PEOFRecord.php') diff --git a/inc/3rdparty/libraries/send2kindle/MOBIClass/PEOFRecord.php b/inc/3rdparty/libraries/send2kindle/MOBIClass/PEOFRecord.php new file mode 100644 index 00000000..a2b0fee8 --- /dev/null +++ b/inc/3rdparty/libraries/send2kindle/MOBIClass/PEOFRecord.php @@ -0,0 +1,49 @@ +elements = new FileElement(array( + + "offset44"=>new FileInt(0xe98e0d0a) + )); + } + public function getByteLength(){ + return $this->getLength(); + } + + public function getLength(){ + return $this->elements->getByteLength(); + } + + public function get(){ + return $this; + } + + public function set($elements){ + throw new Exception("Unallowed set"); + } + + public function serialize() { + return $this->elements->serialize(); + } + + public function unserialize($data) { + $this->elements->unserialize($data); + } + + public function __toString(){ + $output = "PalmDoc Record (".$this->getByteLength()." bytes):\n"; + $output .= $this->elements; + return $output; + } + +} \ No newline at end of file -- cgit v1.2.3