コード例 #1
0
 /**
  * navigate through actors from actor view page
  * *
  */
 public function actornavAction()
 {
     $this->_helper->layout->disableLayout();
     $nav = $this->_getParam('nav');
     $actor_id = $this->_getParam('actor_id');
     $matterModel = new Application_Model_Matter();
     switch ($nav) {
         case "next":
             $actorInfo = $matterModel->getNextActor($actor_id);
             break;
         case "prev":
             $actorInfo = $matterModel->getPrevActor($actor_id);
             break;
         case "forward":
             $actorInfo = $matterModel->getForwardActor($actor_id, 10);
             break;
         case "backward":
             $actorInfo = $matterModel->getBackwardActor($actor_id, 10);
             break;
     }
     $this->view->enumOpts = $matterModel->getEnumSet('actor', 'pay_category');
     $this->view->actorComments = $matterModel->getTableComments('actor');
     $this->view->actor = $actorInfo;
     $this->render('actor');
 }