}
}
+ 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;
`gzip /home/extranet/www/fluidbook/docs/*/*.txt`;
}
-
public static function restoreChapters($args) {
global $core;
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);
}
}