view develop/controllers/extractapp.php @ 8:da10158c6d0a

add toc_correction status in books table. On TOC correction list page, providing the status checking box for users.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 09 Feb 2015 12:28:09 +0100
parents 63e08b98032f
children 54a235d43694
line wrap: on
line source

<?php

class Extractapp extends BaseController {
	protected function Index() {
		$viewmodel = new ExtractappModel();
        $this->ReturnView($viewmodel->Index(), true);
	}

    protected function TaggingText() {
        $viewmodel = new ExtractappModel();
        switch ($this->postdata['func']) {
            case 'SaveFullText':
                $viewmodel->SaveFullText($this->postdata);          
                $this->ReturnView($viewmodel->StartTagging($this->urlvalues), false); 
                break;
            
            default:
                $this->ReturnView($viewmodel->StartTagging($this->urlvalues), false); 
                break;
        }
        // $this->ReturnView($viewmodel->StartTagging($this->urlvalues), false); 

    }

    protected function ExportTable() {
        $viewmodel = new ExtractappModel();
        $this->ReturnView($viewmodel->ExportTable($this->urlvalues, $this->postdata), false);

    }

    protected function EditWordlist() {
        $viewmodel = new ExtractappModel();
        switch ($this->postdata['func']) {
            case 'AddNewList':
                $this->ReturnView($viewmodel->AddNewList($this->postdata), false);
                break;
            case 'SaveWordlist':
                $this->ReturnView($viewmodel->SaveWordlist($this->postdata), false);
                break;
            default:    // EditWordlist
                $this->ReturnView($viewmodel->EditWordlist($this->urlvalues), false);    
            break;
         } 
    }


    protected function EditTaglist() {
        $viewmodel = new ExtractappModel();
        switch ($this->postdata['func']) {
            case 'NewTagElement':
                $this->ReturnView($viewmodel->NewTagElement($this->postdata), false);
                break;
            case 'SaveTagElement':
                $this->ReturnView($viewmodel->SaveTagElement($this->postdata), false);
                break;
            case 'DeleteTag':
                $this->ReturnView($viewmodel->DeleteTag($this->postdata), false);
                break;
            default:    // EditTaglist
                $this->ReturnView($viewmodel->EditTaglist($this->urlvalues), false);
                break;
        }
    }


    protected function TestAction() {
        $viewmodel = new ExtractappModel();
        $this->ReturnView($viewmodel->Test(), true);
    }

	
}


?>