aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/send2kindle/MOBIClass/PEOFRecord.php
blob: a2b0fee871e5f1a56ae63afdfaebb5edca9ca514 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
 * A Record of a End file
 *
 * @author Pratyush
 */
 class PEOFRecord extends FileObject {
 /**
	 * @var FileElement
	 */
	private $elements;

	public function __construct($leng){
	$this->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;
	}			
	
}