Ejemplo n.º 1
0
 public function executeMap($request)
 {
     $this->setResponseFormat(array('xml', 'json'));
     $options = $this->getParams(array('num'));
     $this->data = LsListTable::getEntitiesAndRelsForMap($this->list['id']);
     if ($request->getParameter('format') == "json") {
         return $this->renderText(json_encode($this->data));
     } else {
         return 'Xml';
     }
 }
Ejemplo n.º 2
0
 public function executeMap($request)
 {
     $this->checkList($request);
     $num = $request->getParameter('num');
     $this->data = json_encode(LsListTable::getEntitiesAndRelsForMap($this->list['id'], $num, array()));
 }