/** Render index pages */ function indexAction() { $treasure = new TreasureCases(); $this->view->treasurecases = $treasure->getCases($this->_getAllParams()); $current_year = date('Y'); $years = range(1998, $current_year); $yearslist = array(); foreach ($years as $key => $value) { $yearslist[] = array('year' => $value); } $this->view->years = $yearslist; }
public function casehistoryAction() { if ($this->_getParam('treasureID', false)) { $treasure = new TreasureCases(); $this->view->cases = $treasure->getCaseHistory($this->_treasureID); $valuations = new TreasureValuations(); $this->view->values = $valuations->listvaluations($this->_treasureID); $curators = new TreasureAssignations(); $this->view->curators = $curators->listCurators($this->_treasureID); $committees = new TvcDatesToCases(); $this->view->tvcs = $committees->listDates($this->_treasureID); $actions = new TreasureActions(); $this->view->actions = $actions->getActionsListed($this->_treasureID); $finals = new AgreedTreasureValuations(); $this->view->finalvalues = $finals->listvaluations($this->_treasureID); } else { throw new Pas_Exception_Param($this->_missingParameter); } }