mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
add pdf and mobi libraries
This commit is contained in:
parent
2b58426b2d
commit
4188f38ad5
297 changed files with 126557 additions and 7 deletions
40
inc/3rdparty/libraries/send2kindle/MOBIClass/FileInt.php
vendored
Normal file
40
inc/3rdparty/libraries/send2kindle/MOBIClass/FileInt.php
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Description of FileInt
|
||||
*
|
||||
* @author Sander
|
||||
*/
|
||||
class FileInt extends FileObject {
|
||||
private $data;
|
||||
|
||||
/**
|
||||
* Make an integer to be stored in a file
|
||||
* @param int $n
|
||||
*/
|
||||
public function __construct($n = 0){
|
||||
parent::__construct(4);
|
||||
$this->set($n);
|
||||
}
|
||||
|
||||
public function get(){
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function set($value){
|
||||
$this->data = intval($value);
|
||||
}
|
||||
|
||||
public function serialize() {
|
||||
return $this->intToString($this->data);
|
||||
}
|
||||
|
||||
public function unserialize($data) {
|
||||
__construct($this->toInt($data));
|
||||
}
|
||||
|
||||
public function __toString(){
|
||||
return "FileInt: {".$this->intAsString($this->data)."}";
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue