コード例 #1
0
 /**
  * displays actors for a particular role and provides editing and sorting of the list
  * called upon clicking role in actors' box in matter view page
  * *
  */
 public function roleActorsAction()
 {
     $this->_helper->layout->disableLayout();
     if (!$this->getRequest()->isPost()) {
         return;
     }
     $matter_id = $this->_getParam('matter_id');
     $role_id = $this->_getParam('role_id');
     $matterModel = new Application_Model_Matter();
     $matter_record = $matterModel->getMatter($matter_id);
     // $container_id = $matterModel->getMatterContainer($matter_id);
     $this->view->role_actors = $matterModel->getMatterActorsForRole($matter_record[0]['container_ID'], $matter_id, $role_id);
     $this->view->role = $this->view->role_actors[0]['role_name'];
     $this->view->matter_id = $matter_id;
     $this->view->actor_role = $matterModel->getActorRoleInfo($role_id);
     $this->view->actors_count = count($this->view->role_actors);
 }