change view class using name

This commit is contained in:
Jianxuan Li 2015-10-21 17:00:16 +08:00 committed by wlx
parent 6fa75d433d
commit 42db7897d2
1 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
@link http:// @link http://
*/ */
use data\DataService; use data\DataService;
use Helpers\View as view; use Helpers\View as viewAssist;
use Reference\Reference; use Reference\Reference;
use Reference\Ris; use Reference\Ris;
include_once("data/Author.php"); include_once("data/Author.php");
@ -2568,7 +2568,7 @@ class AuthorController extends Zend_Controller_Action
} }
//安全考虑 //安全考虑
if (!empty($uuid) && !view::isUuid($uuid)) die(); if (!empty($uuid) && !viewAssist::isUuid($uuid)) die();
//include_once("helper/view.php"); //include_once("helper/view.php");
include_once("data/Author.php"); include_once("data/Author.php");
@ -2595,7 +2595,7 @@ class AuthorController extends Zend_Controller_Action
else if ($ac=="byliter") else if ($ac=="byliter")
{ {
$this->_helper->viewRenderer('literature-byliter'); $this->_helper->viewRenderer('literature-byliter');
view::addPaginator($reference->getReferencesByAuthor($u_id,1,0),$this, $this->view->pagelimit); viewAssist::addPaginator($reference->getReferencesByAuthor($u_id,1,0),$this, $this->view->pagelimit);
return true; return true;
} }
//浏览数据的文献 //浏览数据的文献
@ -2611,7 +2611,7 @@ class AuthorController extends Zend_Controller_Action
$sql="select title from metadata where uuid='$uuid'"; $sql="select title from metadata where uuid='$uuid'";
$rs=$this->db->fetchRow($sql); $rs=$this->db->fetchRow($sql);
$this->view->mdtitle=$rs['title']; $this->view->mdtitle=$rs['title'];
view::addPaginator($reference->fetchReferencesWithUUID($uuid),$this, $this->view->pagelimit); viewAssist::addPaginator($reference->fetchReferencesWithUUID($uuid),$this, $this->view->pagelimit);
} }
return true; return true;
} }
@ -2621,7 +2621,7 @@ class AuthorController extends Zend_Controller_Action
{ {
$this->view->referenceType = $reference->referenceType(); $this->view->referenceType = $reference->referenceType();
$this->_helper->viewRenderer('literature-cited'); $this->_helper->viewRenderer('literature-cited');
view::addPaginator($reference->getReferencesByAuthor($u_id,1,1),$this, $this->view->pagelimit); viewAssist::addPaginator($reference->getReferencesByAuthor($u_id,1,1),$this, $this->view->pagelimit);
return true; return true;
} }