add pdf and mobi libraries

This commit is contained in:
tcit
2014-07-24 15:49:36 +02:00
parent 2b58426b2d
commit 4188f38ad5
297 changed files with 126557 additions and 7 deletions

View File

@ -0,0 +1,46 @@
<?php
/**
* Description of FileRecord
*
* @author Sander
*/
class FileRecord extends FileObject {
/**
* @var Record
*/
private $record;
/**
* Make a record to be stored in a file
* @param Record $record
*/
public function __construct($record){
$this->record = $record;
}
public function getByteLength(){
return $this->getLength();
}
public function getLength(){
return $this->record->getLength();
}
public function get(){
return $this->record;
}
public function set($record){
$this->record = $record;
}
public function serialize() {
return $this->record->serialize();
}
public function unserialize($data) {
__construct($this->record->unserialize($data));
}
}
?>