aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/MOBIClass/FileTri.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-19 13:37:32 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-19 13:37:32 +0100
commit3d99ce9dadca82765832ab669dabc22c554fd78e (patch)
treee47e84483e03ccc289bf5768526dedacdff07add /inc/3rdparty/libraries/MOBIClass/FileTri.php
parent99410a21eb261f50234cc4148323a52b345e15e1 (diff)
downloadwallabag-3d99ce9dadca82765832ab669dabc22c554fd78e.tar.gz
wallabag-3d99ce9dadca82765832ab669dabc22c554fd78e.tar.zst
wallabag-3d99ce9dadca82765832ab669dabc22c554fd78e.zip
travis configuration
Diffstat (limited to 'inc/3rdparty/libraries/MOBIClass/FileTri.php')
-rw-r--r--inc/3rdparty/libraries/MOBIClass/FileTri.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/inc/3rdparty/libraries/MOBIClass/FileTri.php b/inc/3rdparty/libraries/MOBIClass/FileTri.php
deleted file mode 100644
index 6cacc0b0..00000000
--- a/inc/3rdparty/libraries/MOBIClass/FileTri.php
+++ /dev/null
@@ -1,41 +0,0 @@
1<?php
2
3/**
4 * Description of FileTri
5 *
6 * @author Sander
7 */
8class FileTri extends FileObject {
9 private $data;
10
11 /**
12 * Make a tri-byte to be stored in a file
13 * @param tri-byte $n
14 */
15 public function __construct($n = 0){
16 parent::__construct(3);
17 $this->set($n);
18 }
19
20 public function get(){
21 return $this->data;
22 }
23
24 public function set($value){
25 $this->data = intval($value) & 0xFFFFFF;
26 }
27
28 public function serialize() {
29 return $this->triToString($this->data);
30 }
31
32 public function unserialize($data) {
33 __construct($this->toInt($data));
34 }
35
36
37 public function __toString(){
38 return "FileTri: {".$this->triAsString($this->data)."}";
39 }
40}
41?>