]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/3rdparty/libraries/MOBIClass/RecordFactory.php
use directly MOBIClass
[github/wallabag/wallabag.git] / inc / 3rdparty / libraries / MOBIClass / RecordFactory.php
similarity index 84%
rename from inc/3rdparty/libraries/send2kindle/MOBIClass/RecordFactory.php
rename to inc/3rdparty/libraries/MOBIClass/RecordFactory.php
index 8bf0c97db04b590072a2dac271d499c150547307..12806fe38e62e714d194d1edddb43e11af8507c3 100644 (file)
@@ -62,21 +62,7 @@ class RecordFactory {
        }
 
        public function createFLISRecord(){
-               
-               $this->elements = new FileElement(array(
-                       "offsetL0"=>new FileString("FLIS", 4),  //FLIS
-                       "offsetL4"=>new FileInt(0x08),
-                       "offsetL8"=>new FileShort(0x41),
-                       "offsetL10"=>new FileTri(),
-                       "offsetL16"=>new FileInt(0xFFFFFFFF),
-                       "offsetL20"=>new FileShort(0x01),               
-                       "offsetL22"=>new FileShort(0x03),
-                       "offsetL24"=>new FileInt(0x03),
-                       "offsetL28"=>new FileInt(0x01),
-                       "offsetL32"=>new FileInt(0xFFFFFFFF)
-                       ));
-               
-               /*$r = "FLIS";
+               $r = "FLIS";
                $r .= $this->asString(8, 4);
                $r .= $this->asString(65, 2);
                $r .= $this->asString(0, 2);
@@ -87,7 +73,7 @@ class RecordFactory {
                $r .= $this->asString(3, 4);
                $r .= $this->asString(1, 4);
                $r .= $this->asString(-1, 4);
-               return new Record($r);*/
+               return new Record($r);
        }
        
        private function asString($int, $size){