aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/MOBIClass/FileRecord.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2014-12-22 14:33:01 +0100
committerThomas Citharel <tcit@tcit.fr>2014-12-22 14:33:01 +0100
commitf3917b1ee4bba812e82da57dd181f50d62926db4 (patch)
treecb4b04931e97e4a69500bf9d7aa5c21985cab59e /inc/3rdparty/libraries/MOBIClass/FileRecord.php
parent311baf86befde0557faea614ca4d13bb2bd2cc66 (diff)
parent9254b6cf460edec3a59e9ccc19873481a1d19c90 (diff)
downloadwallabag-f3917b1ee4bba812e82da57dd181f50d62926db4.tar.gz
wallabag-f3917b1ee4bba812e82da57dd181f50d62926db4.tar.zst
wallabag-f3917b1ee4bba812e82da57dd181f50d62926db4.zip
Merge branch 'dev' into randomarticle
Diffstat (limited to 'inc/3rdparty/libraries/MOBIClass/FileRecord.php')
-rw-r--r--inc/3rdparty/libraries/MOBIClass/FileRecord.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/inc/3rdparty/libraries/MOBIClass/FileRecord.php b/inc/3rdparty/libraries/MOBIClass/FileRecord.php
new file mode 100644
index 00000000..494a72e4
--- /dev/null
+++ b/inc/3rdparty/libraries/MOBIClass/FileRecord.php
@@ -0,0 +1,46 @@
1<?php
2
3/**
4 * Description of FileRecord
5 *
6 * @author Sander
7 */
8class FileRecord extends FileObject {
9 /**
10 * @var Record
11 */
12 private $record;
13
14 /**
15 * Make a record to be stored in a file
16 * @param Record $record
17 */
18 public function __construct($record){
19 $this->record = $record;
20 }
21
22 public function getByteLength(){
23 return $this->getLength();
24 }
25
26 public function getLength(){
27 return $this->record->getLength();
28 }
29
30 public function get(){
31 return $this->record;
32 }
33
34 public function set($record){
35 $this->record = $record;
36 }
37
38 public function serialize() {
39 return $this->record->serialize();
40 }
41
42 public function unserialize($data) {
43 __construct($this->record->unserialize($data));
44 }
45}
46?>