/** Set up the individual emperor * @access public * @return void * @throws Pas_Exception_Param */ public function emperorAction() { if ($this->getParam('id', false)) { $id = (int) $this->getParam('id'); $this->view->emps = $this->_emperors->getEmperorDetails($id); $denoms = new Denominations(); $this->view->denoms = $denoms->getEmperorDenom($id); $mints = new Mints(); $this->view->mints = $mints->getMintEmperorList($id); } else { throw new Pas_Exception_Param($this->_missingParameter, 500); } }
/** Set up the individual emperor */ public function emperorAction() { if ($this->_getParam('id', false)) { $this->view->inlineScript()->appendFile('http://maps.google.com/maps?file=api&v=2.x&key=' . $this->_googleapikey, $type = 'text/javascript'); $id = (int) $this->_getParam('id'); $emps = new Emperors(); $this->view->emps = $emps->getEmperorDetails($id); $denoms = new Denominations(); $this->view->denoms = $denoms->getEmperorDenom($id); $mints = new Mints(); $this->view->mints = $mints->getMintEmperorList($id); $counts = new Finds(); $this->view->counts = $counts->getCountEmperor($this->_getParam('id')); $images = new Slides(); $this->view->images = $images->getExamplesCoinsEmperors($id, 4); } else { throw new Pas_Exception_Param($this->_missingParameter); } }