コード例 #1
0
 /** Individual denomination page details
  * @access Public
  * @throws Pas_Exception_Param
  */
 public function denominationAction()
 {
     if ($this->getParam('id', false)) {
         $this->view->denomination = $this->_denominations->getDenom($this->getParam('id'), (int) $this->_period);
         $this->view->rulers = $this->_denominations->getRulerDenomination($this->getParam('id'));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
コード例 #2
0
 /** Setup the denomination details
  */
 public function denominationAction()
 {
     if ($this->_getParam('id', false)) {
         $id = (int) $this->_getParam('id');
         $denoms = new Denominations();
         $this->view->denoms = $denoms->getDenom($id, $this->_period);
         $rulers = new Denominations();
         $this->view->rulers = $rulers->getRulerDenomination($id);
     } else {
         throw new Pas_Exception_Param($this->_missingParameter);
     }
 }