Ejemplo n.º 1
0
 /**
  * @access 	public
  * @return 	void
  */
 public function saveClientListAction()
 {
     if ($this->getRequest()->isPost()) {
         $this->_mapper->setData($this->getRequest()->getPost());
         $return = $this->_mapper->saveClientList();
         $message = $this->_mapper->getMessage()->toArray();
         $result = array('status' => (bool) $return, 'id' => $return, 'description' => $message);
     } else {
         $message = new App_Message();
         $message->addMessage($this->_config->messages->warning, App_Message::WARNING);
         $result = array('status' => false, 'description' => $message->toArray());
     }
     $this->_helper->json($result);
 }