Ejemplo n.º 1
0
 /** Action to generate the last ruler based off broadperiod
  * @access public
  */
 public function lastrulerAction()
 {
     if ($this->getParam('term', false)) {
         $rulers = new Rulers();
         $data = $rulers->getLastRulers($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);
 }