public function removeProspectDataAction()
    {
    	$response = array();
    	$this->getEventManager()->trigger('meliscmsprospects_toolprospects_delete_start', $this, $response);
        
    	$translator = $this->getServiceLocator()->get('translator');
        $prospectTable = $this->getServiceLocator()->get('MelisProspects');
        $id = $this->params()->fromRoute('id', $this->params()->fromQuery('id', ''));
        
        $prospectTable->deleteById($id);

        $response = array(
            'textTitle' => 'tr_melistoolprospects_tool_prospects',
            'textMessage' => 'tr_prospect_manager_fm_delete_data_content',
            'success' => true,
        );
        
        $this->getEventManager()->trigger('meliscmsprospects_toolprospects_delete_end', $this, array_merge($response, array('typeCode' => 'CMS_PROSPECTS_DELETE', 'itemId' => $id)));
        
        return new JsonModel($response);
    }
public function removeProspectDataAction()
    {
    	$response = array();
    	$this->getEventManager()->trigger('meliscmsprospects_toolprospects_delete_start', $this, $response);
        
    	$translator = $this->getServiceLocator()->get('translator');
        $prospectTable = $this->getServiceLocator()->get('MelisProspects');
        $id = $this->params()->fromRoute('id', $this->params()->fromQuery('id', ''));
        
        $prospectTable->deleteById($id);

        $response = array(
            'textTitle' => 'tr_melistoolprospects_tool_prospects',
            'textMessage' => 'tr_prospect_manager_fm_delete_data_content',
            'success' => true,
        );
        
        $this->getEventManager()->trigger('meliscmsprospects_toolprospects_delete_end', $this, array_merge($response, array('typeCode' => 'CMS_PROSPECTS_DELETE', 'itemId' => $id)));
        
        return new JsonModel($response);
    }
public function removeProspectDataAction ( ) { $ response = array ( ) ; $ this -> getEventManager ( ) -> trigger ( 'meliscmsprospects_toolprospects_delete_start' , $ this , $ response ) ; $ translator = $ this -> getServiceLocator ( ) -> get ( 'translator' ) ; $ prospectTable = $ this -> getServiceLocator ( ) -> get ( 'MelisProspects' ) ; $ id = $ this -> params ( ) -> fromRoute ( 'id' , $ this -> params ( ) -> fromQuery ( 'id' , '' ) ) ; $ prospectTable -> deleteById ( $ id ) ; $ response = array ( 'textTitle' => 'tr_melistoolprospects_tool_prospects' , 'textMessage' => 'tr_prospect_manager_fm_delete_data_content' , 'success' => true , ) ; $ this -> getEventManager ( ) -> trigger ( 'meliscmsprospects_toolprospects_delete_end' , $ this , array_merge ( $ response , array ( 'typeCode' => 'CMS_PROSPECTS_DELETE' , 'itemId' => $ id ) ) ) ; return new JsonModel ( $ response ) ; }
Removed a specific prospect data in the database table
@return \Zend\View\Model\JsonModel
Removed a specific prospect data in the database table