$this->makeTextsIndexes($book_id, $index, $textes);\r
$daoDoc->getLinksAndRulers($book_id, $links, $rulers);\r
\r
- $flex = new cubeFlexCompiler('FluidbookDatas', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH);\r
- $flexLight = new cubeFlexCompiler('FluidbookDatasLight', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH);\r
+ $flex = new cubeFlexCompiler('FluidbookDatas', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH,10);\r
+ $flexLight = new cubeFlexCompiler('FluidbookDatasLight', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH,10);\r
$flex->addVariable('links', $links, false, true, 'JSONObject');\r
\r
$imagesassets = array();\r
\r
public function indexPDF($book, $pages) {\r
$indexPath = WS_BOOKS . '/search/' . $book->book_id;\r
+ \r
+ if(file_exists($indexPath) && filemtime($indexPath)>$book->composition_update){\r
+ return;\r
+ }\r
+ \r
Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive());\r
\r
if (file_exists($indexPath)) {\r
\r
public function copyLinkFile($source, $dest, $video=false) {\r
// TODO delete that return;\r
- return;\r
+ //return;\r
$origDir = WS_BOOKS . '/working/' . $this->book_id . '/';\r
$types = array('mp4', 'ogv', 'webm', 'jpg');\r
if ($video) {\r