diff controllers/extractapp.php @ 67:3ada9334ebfc extractapp

New: check taglist is deprecated or not
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 07 Apr 2015 14:45:31 +0200
parents 3395385476d1
children edb8a2e8ce84
line wrap: on
line diff
--- a/controllers/extractapp.php	Thu Apr 02 16:33:46 2015 +0200
+++ b/controllers/extractapp.php	Tue Apr 07 14:45:31 2015 +0200
@@ -14,7 +14,6 @@
     }
 
     protected function TaggingText() {
-        //$viewmodel = new ExtractappModel();
         $viewmodel = $this->viewmodel;
                
         switch ($this->postdata['func']) {
@@ -60,15 +59,15 @@
 
                 if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) {
                     // --- Existing branch case ---
-                    // get text from fileId, from LGService
                     $viewmodel->GetInfoFromPreviousPage($this->postdata);
+                    // get text by fileId, from LGService
                     $viewmodel->GetTextFromFileId();
 
                 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) {
                     // --- New branch case ---
-                    // get text from sectionId from LGService
                     $viewmodel->GetInfoFromPreviousPage($this->postdata);
-                    $viewmodel->GetBookMetaData($this->postdata);
+                    $viewmodel->GetBookMetaDataBySectionId();
+                    // get text by sectionId from LGService
                     $viewmodel->GetTextFromSectionId();  
 
                 } else if ($this->postdata['sectionId'] != 0) { 
@@ -94,14 +93,12 @@
     }
 
     protected function ExportTable() {
-        //$viewmodel = new ExtractappModel();
         $viewmodel = $this->viewmodel;
         $this->ReturnView($viewmodel->ExportTable($this->postdata), true);
 
     }
 
     protected function EditWordlist() {
-        // $viewmodel = new ExtractappModel();
         $viewmodel = $this->viewmodel;
         switch ($this->postdata['func']) {
             case 'AddNewList':
@@ -119,7 +116,6 @@
 
 
     protected function EditTaglist() {
-        //$viewmodel = new ExtractappModel();
         $viewmodel = $this->viewmodel;
         switch ($this->postdata['func']) {
             case 'NewTagElement':
@@ -139,7 +135,6 @@
 
  
     protected function ConfigTagsInTopic() {
-        //$viewmodel = new ExtractappModel();
         $viewmodel = $this->viewmodel;
         switch ($this->postdata['func']) {
             case 'Update':
@@ -152,7 +147,6 @@
     }
 
     protected function TestAction() {
-        $viewmodel = new ExtractappModel();
         $this->ReturnView($viewmodel->Test(), true);
     }