/**
  * 
  */
 public function informationAction()
 {
     if ($this->getRequest()->isXMLHttpRequest()) {
         $this->_helper->layout()->disableLayout();
     }
     // Form Case Group
     $form = $this->_initForm('caseGroup');
     $data = array();
     $data['fk_id_counselor'] = Zend_Auth::getInstance()->getIdentity()->id_sysuser;
     $id = $this->_getParam('id');
     if (!empty($id)) {
         $row = $this->_mapper->fetchRow($id);
         $data = $row->toArray();
         $form->getElement('fk_id_counselor')->setAttrib('disabled', true);
         if (!$this->view->caseActiveGroup()->hasAccessEdit()) {
             $form->getElement('save')->setAttrib('disabled', true);
         }
     }
     $form->populate($data);
     $this->view->form = $form;
 }
Beispiel #2
0
 /**
  *
  * @param type $idCase
  * @return \App_View_Helper_CaseActive 
  */
 public function setCase($idCase)
 {
     $mapperCase = new Client_Model_Mapper_CaseGroup();
     $this->_caseGroup = $mapperCase->fetchRow($idCase);
     return $this;
 }