public function searchCalendarEventAction(){
        $translator = $this->getServiceLocator()->get('translator');
        $textMessage = '';
        $request = $this->getRequest();
        // Default Values
        $id = null;

        if($request->isPost()) {

            $postValues = get_object_vars($request->getPost());

            if (!empty($postValues)){

                $calendarService = $this->getServiceLocator()->get('MelisCalendarService');
                $id = $responseData = $calendarService->deleteCalendarEvent($postValues);
            }
        }

        $response = array(
            'success' => '0',
            'textTitle' => 'tr_melistoolcalendar_delete_event_title',
            'textMessage' => $textMessage,
            'errors' => $errors,
        );

        return new JsonModel($response);
    }
public function searchCalendarEventAction(){
        $translator = $this->getServiceLocator()->get('translator');
        $textMessage = '';
        $request = $this->getRequest();
        // Default Values
        $id = null;

        if($request->isPost()) {

            $postValues = get_object_vars($request->getPost());

            if (!empty($postValues)){

                $calendarService = $this->getServiceLocator()->get('MelisCalendarService');
                $id = $responseData = $calendarService->deleteCalendarEvent($postValues);
            }
        }

        $response = array(
            'success' => '0',
            'textTitle' => 'tr_melistoolcalendar_delete_event_title',
            'textMessage' => $textMessage,
            'errors' => $errors,
        );

        return new JsonModel($response);
    }
public function searchCalendarEventAction ( ) { $ translator = $ this -> getServiceLocator ( ) -> get ( 'translator' ) ; $ textMessage = '' ; $ request = $ this -> getRequest ( ) ; // Default Values $ id = null ; if ( $ request -> isPost ( ) ) { $ postValues = get_object_vars ( $ request -> getPost ( ) ) ; if ( ! empty ( $ postValues ) ) { $ calendarService = $ this -> getServiceLocator ( ) -> get ( 'MelisCalendarService' ) ; $ id = $ responseData = $ calendarService -> deleteCalendarEvent ( $ postValues ) ; } } $ response = array ( 'success' => '0' , 'textTitle' => 'tr_melistoolcalendar_delete_event_title' , 'textMessage' => $ textMessage , 'errors' => $ errors , ) ; return new JsonModel ( $ response ) ; }
Retrieving Calendar searched item event data for updating
Retrieving Calendar searched item event data for updating