public function listReportsAction()
 {
     $xml = new SimpleXMLElement('<rows/>');
     ReportBaseClosure::generateXMLTree($xml);
     header('content-type: text/xml');
     $this->view->content = $xml->asXml();
     $this->render('list');
 }
 public function processReorderBaseAction()
 {
     $from = (int) $this->_getParam('from');
     $to = (int) $this->_getParam('to');
     // utilizing the ORM in the meantime, but can be optimized
     $reportBaseClosure = new ReportBaseClosure();
     $reportBaseClosure->reorder($from, $to);
     $data = array();
     $data['msg'] = __('Updated successfully');
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct($data);
 }