Ejemplo n.º 1
0
 /** Set up the individual dynasty
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function dynastyAction()
 {
     if ($this->getParam('id', false)) {
         $this->view->dynasties = $this->_dynasties->getDynasty($this->getParam('id'));
         $emperors = new Emperors();
         $this->view->emperors = $emperors->getEmperorsDynasty($this->getParam('id'));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
 /** Set up the individual denominations
  * @access public
  * @throws Pas_Exception_Param
  * @return void
  */
 public function denominationAction()
 {
     if ($this->getParam('id', false)) {
         $id = $this->getParam('id');
         $this->view->denoms = $this->_denominations->getDenom($id, (int) 21);
         $emps = new Emperors();
         $this->view->emps = $emps->getDenomEmperor($id);
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
 /** Set up the individual period
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function periodAction()
 {
     if ($this->getParam('id', false)) {
         $id = (int) $this->getParam('id');
         $this->view->periods = $this->_reeces->getReecePeriodDetail($id);
         $emperors = new Emperors();
         $this->view->reeces = $emperors->getReeceDetail($id);
         $reverses = new RevTypes();
         $this->view->reverses = $reverses->getRevTypeReece($id);
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
 /** Set up the individual reverse type
  */
 public function typeAction()
 {
     if ($this->getParam('id', false)) {
         $id = $this->getParam('id');
         $this->view->reverses = $this->_revTypes->getReverseTypesDetails($id);
         $emps = new Emperors();
         $this->view->emps = $emps->getEmperorRevTypes($id);
         $mints = new Mints();
         $this->view->mints = $mints->getMintReverseType($id);
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
Ejemplo n.º 5
0
 /** 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);
     }
 }
Ejemplo n.º 6
0
 /** Data action for timeline etc
  * @access public
  * @return void
  */
 public function dataAction()
 {
     $this->view->emperors = $this->_emperors->getEmperorsTimeline();
 }
Ejemplo n.º 7
0
 /** Emperors action
  * @access public
  */
 public function emperorsAction()
 {
     $emps = new Emperors();
     $this->view->emperors = $emps->getEmperorsTimeline();
 }
Ejemplo n.º 8
0
 /** The configuration
  * @access public
  * @return void
  */
 public function configurationAction()
 {
     $content = new Content();
     $this->view->conservation = $content->getConservationNotes();
     $this->view->treasure = $content->getTreasureContent();
     $denoms = new Denominations();
     $this->view->romanDenoms = $denoms->getDenominationsSitemap('21');
     $this->view->ironageDenoms = $denoms->getDenominationsSitemap('16');
     $this->view->earlymedDenoms = $denoms->getDenominationsSitemap('47');
     $this->view->medievalDenoms = $denoms->getDenominationsSitemap('29');
     $this->view->byzantineDenoms = $denoms->getDenominationsSitemap('67');
     $this->view->greekDenoms = $denoms->getDenominationsSitemap('66');
     $this->view->postMedDenoms = $denoms->getDenominationsSitemap('36');
     $emperors = new Emperors();
     $this->view->emperors = $emperors->getEmperorsSiteMap();
     $rulers = new Rulers();
     $this->view->medrulers = $rulers->getMedievalRulersList();
     $this->view->earlymedrulers = $rulers->getEarlyMedievalRulersList();
     $this->view->postmedrulers = $rulers->getPostMedievalRulersList();
     $this->view->ironagerulers = $rulers->getIARulersList();
     $this->view->byzantinerulers = $rulers->getByzRulersList();
     $this->view->greekrulers = $rulers->getGreekRulersList();
     $mints = new Mints();
     $this->view->romanMints = $mints->getMintsSiteMap(21);
     $this->view->ironageMints = $mints->getMintsSiteMap(16);
     $this->view->byzantineMints = $mints->getMintsSiteMap(67);
     $this->view->earlymedMints = $mints->getMintsSiteMap(47);
     $this->view->medMints = $mints->getMintsSiteMap(29);
     $this->view->postmedMints = $mints->getMintsSiteMap(36);
     $this->view->greekMints = $mints->getMintsSiteMap(66);
     $reeces = new Reeces();
     $this->view->reeces = $reeces->getSiteMap();
     $types = new MedievalTypes();
     $this->view->medtypes = $types->getTypesSiteMap(29);
     $this->view->postmedtypes = $types->getTypesSiteMap(36);
     $this->view->earlymedtypes = $types->getTypesSiteMap(47);
     $cats = new CategoriesCoins();
     $this->view->medcats = $cats->getCatsSiteMap(29);
     $this->view->earlymedcats = $cats->getCatsSiteMap(47);
     $this->view->postmedcats = $cats->getCatsSiteMap(36);
     $tribes = new Tribes();
     $this->view->tribes = $tribes->getSitemap();
     $news = new News();
     $this->view->news = $news->getSitemapNews();
 }
Ejemplo n.º 9
0
 /** Delete an emperor
  * @access public
  * @return void
  */
 public function deleteemperorAction()
 {
     if ($this->_request->isPost()) {
         $id = (int) $this->_request->getPost('id');
         $del = $this->_request->getPost('del');
         if ($del == 'Yes' && $id > 0) {
             $emperors = new Emperors();
             $where = 'id = ' . $id;
             $emperors->delete($where);
             $this->getFlash()->addMessage('Issuer or Emperor details deleted! This cannot be undone.');
         }
         $this->redirect($this->_redirectUrl . 'emperorbios/');
     } else {
         $id = (int) $this->_request->getParam('id');
         if ($id > 0) {
             $emperors = new Emperors();
             $this->view->emperor = $emperors->fetchRow('id =' . $id);
         }
     }
 }