Ejemplo n.º 1
0
 /** Individual ruler page
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function rulerAction()
 {
     if ($this->getParam('id', false)) {
         $this->view->greek = $this->_rulers->getRulerProfile($this->getParam('id'));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
Ejemplo n.º 2
0
 /** Get individual ruler page
  */
 public function rulerAction()
 {
     if ($this->_getParam('id', false)) {
         $byzantines = new Rulers();
         $this->view->byzantine = $byzantines->getRulerProfile((int) $this->_getParam('id'));
         $this->view->id = $this->_getParam('id');
     } else {
         throw new Pas_Exception_Param($this->_missingParameter);
     }
 }