/** Set up the one to 50k entry page */ public function oneto50kAction() { if ($this->getParam('id', false)) { $gazetteers = new OsData(); $this->view->gazetteer = $gazetteers->getGazetteer($this->getParam('id')); } else { throw new Pas_Exception_Param($this->_missingParameter, 500); } }
/** Get the records from the model * @access protected * @param string $constituency * @return array */ public function getRecords($constituency) { $osdata = new OsData(); return $osdata->getGazetteerConstituency($constituency); }