/** * Show a set * * @return void */ public function showsetAction() { $request = $this->getRequest(); $id = $this->_helper->IdConvert->hexToStr($request->getParam('id')); if (empty($id)) { $this->_helper->messenger->error('Nie podano parametru ID'); return $this->_helper->redirector('index'); } $data = array(); try { $data = $this->_model->getSet($id); $clients = new WsClientHasServiceSet(); $clients = $clients->getClients($id); $clientsPaginator = new Base_Paginator(new Base_Paginator_Adapter_Array($clients->toArray(), array('RowClass' => 'Row_WsClientHasServiceSet'))); $this->view->clients = $clientsPaginator; $this->view->clientsHeaders = array('id_client'); } catch (Logic_Ws_Exception $e) { $this->_helper->messenger('error', MSG_ERROR, $e); $this->_helper->redirector('index'); return; } $this->view->data = $data; }