From: vincent@cubedesigners.com Date: Thu, 7 Sep 2017 15:02:16 +0000 (+0000) Subject: done #1652 @0:35 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bce54d9065dfa5807caa9e0e812e7809aac18cb4;p=cubeextranet.git done #1652 @0:35 --- diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index 1294645a0..575da1bd6 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -693,6 +693,32 @@ class wsMaintenance { } } + public static function exportSommaire($args) { + global $core; + $book_id = $args[0]; + $dao = new wsDAOBook($core->con); + $book = $dao->selectById($book_id); + + header('Content-Type: text/plain'); + foreach ($book->chapters as $c) { + echo str_repeat("\t", $c->level); + echo $c->label; + echo ' ' . $c->page; + echo "\n"; + + } + exit; + } + + public static function copySommaire($args) { + global $core; + $from = $args[0]; + $to=$args[1]; + $dao = new wsDAOBook($core->con); + $fbook = $dao->selectById($from); + $dao->setChapters($to,json_encode($fbook->chapters)); + } + public static function copyComposition($args) { global $core; @@ -1028,7 +1054,6 @@ class wsMaintenance { `gzip /home/extranet/www/fluidbook/docs/*/*.txt`; } - public static function restoreChapters($args) { global $core; @@ -1293,7 +1318,7 @@ class wsMaintenance { public function testSVG() { $test = '/home/extranet/www/fluidbook/docs/115864/html/test.svg'; copy('/home/extranet/www/fluidbook/docs/115864/html/tp1.svg', $test); - wsDocument::cleanSVG($test,true); + wsDocument::cleanSVG($test, true); } }