/** Set up the index page
  */
 public function indexAction()
 {
     $greek = new Rulers();
     $greeks = $greek->getRulersGreekList($this->_getAllParams());
     $contexts = array('json', 'xml');
     if (in_array($this->_helper->contextSwitch()->getCurrentContext(), $contexts)) {
         $data = array('pageNumber' => $greeks->getCurrentPageNumber(), 'total' => number_format($greeks->getTotalItemCount(), 0), 'itemsReturned' => $greeks->getCurrentItemCount(), 'totalPages' => number_format($greeks->getTotalItemCount() / $greeks->getItemCountPerPage(), 0));
         $this->view->data = $data;
         $greeksa = array();
         foreach ($greeks as $r => $v) {
             $greeksa[$r] = $v;
         }
         $this->view->greeks = $greeksa;
     } else {
         $this->view->greeks = $greeks;
     }
 }
 /** The index page for listing rulers
  * @access public
  * @return void
  */
 public function indexAction()
 {
     $this->view->greeks = $this->_rulers->getRulersGreekList($this->getAllParams());
 }