public function editdocAction() { $this->_helper->layout->disableLayout(); if (array_key_exists('data', $_GET)) { $this->view->data = $_GET['data']; } else { $this->view->data = "''"; } $dt = new Default_Model_DocTypes(); $this->view->docTypes = $dt->refresh(); $this->view->people = new Default_Model_Researchers(); $this->view->people->filter->orderBy(array('lastname', 'firstname')); $this->view->people->refresh(); }
public function getDocType() { if ($this->_docType === null) { $DocTypes = new Default_Model_DocTypes(); $DocTypes->filter->id->equals($this->getDocTypeID()); if ($DocTypes->count() > 0) { $this->_docType = $DocTypes->items[0]; } } return $this->_docType; }