Mercurial > hg > extraction-interface
diff models/extractapp.php @ 59:6e44605eb4f6 extractapp
New: 1.display messages 2.handle saving conflict:up-to-date or reload text
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 31 Mar 2015 11:32:25 +0200 |
parents | a11f9103b8db |
children | 3239979f6673 |
line wrap: on
line diff
--- a/models/extractapp.php Tue Mar 31 10:59:52 2015 +0200 +++ b/models/extractapp.php Tue Mar 31 11:32:25 2015 +0200 @@ -178,35 +178,7 @@ } - /* - public function Reload($_postdata) { - - // update text using $this->current_fileId - // getTextbyFileId - $current_fileId = $_postdata['currentFileId']; - //$this->file_id = $_postdata['currentFileId']; - //$this->GetTextFromFileId($_postdata); - //$latest_editing = $this->lg_text; - // get from URL with file_id - - $lg_text_url = $this->get_text_from_fileId_url.$current_fileId; - $lg_text = file_get_contents($lg_text_url); - - $stringInput = $lg_text; - $stringInput = preg_replace("/ /u", "○", $stringInput); - $stringInput = preg_replace("/\n/u", "<br>", $stringInput); - $stringInput = preg_replace("/【(.*?)】/u", "【<a href=\"review_index_xml_images.php?books_id=".$bookId."&pages=\\1&entry=0\" target=\"_bookImg\">\\1</a>】", $stringInput); - $lg_text = $stringInput; - - - //var_dump($lg_text); - - echo json_encode($lg_text); - //var_dump($this->file_id); - - } - */ - + // TODO: comparison not correct private function Taglist_infileUpToDate($taglistArray) { @@ -480,7 +452,7 @@ } else { // -- new branch case - echo "saveNew!"; + // echo "saveNew!"; $user_id = "0"; if ($_postdata['userId']) { $user_id = $_postdata['userId'];