update the Doi class

This commit is contained in:
Li Jianxuan 2013-04-22 15:16:05 +00:00
parent 113682bfb7
commit e2c2cfe776
1 changed files with 49 additions and 36 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
class Doi class Doi extends Zend_Controller_Plugin_Abstract
{ {
private $db; //传入PDO对象. private $db; //传入PDO对象.
private $auth = NULL; //Zend_Auth 对象 private $auth = NULL; //Zend_Auth 对象
@ -33,4 +33,17 @@ class Doi
return $row; return $row;
} }
function _getParams(Zend_Controller_Request_Abstract $request)
{
$data = array(
'doi' => trim($request->getParam('doi')),
'uuid' => trim($request->getParam('uuid')),
'publisher' => trim($request->getParam('publisher')),
'url' => trim($request->getParam('url')),
'title' => trim($request->getParam('title')),
'info'=>$_POST['info']
);
return $data;
}
} }