Esempio n. 1
0
 /** Get the denominations
  * @access public
  */
 public function getdenominationsAction()
 {
     if ($this->getParam('term', false)) {
         $denominations = new Denominations();
         $data = $denominations->getDenominationByBroadPeriod($this->getParam('term'));
         if (empty($data)) {
             $data = array(array('id' => null, 'term' => 'No Options'));
         }
     } else {
         $data = array(null => 'You must choose a broad period first');
     }
     echo Zend_Json::encode($data);
 }