public function deleteCalendarEvent($postValues)
	{
	    $calId = null;
	    $calendarTable = $this->getServiceLocator()->get('MelisCalendarTable');
	    $resultEvent = $calendarTable->getEntryById($postValues['cal_id']);
	     
	    if (!empty($resultEvent)){
	         
	        $event = $resultEvent->current();
	         
	        if (!empty($event)){
	            $calId = $calendarTable->deleteById($postValues['cal_id']);
	        }
	    }
	    
	    return $calId;
	}
public function deleteCalendarEvent($postValues)
	{
	    $calId = null;
	    $calendarTable = $this->getServiceLocator()->get('MelisCalendarTable');
	    $resultEvent = $calendarTable->getEntryById($postValues['cal_id']);
	     
	    if (!empty($resultEvent)){
	         
	        $event = $resultEvent->current();
	         
	        if (!empty($event)){
	            $calId = $calendarTable->deleteById($postValues['cal_id']);
	        }
	    }
	    
	    return $calId;
	}
public function deleteCalendarEvent ( $ postValues ) { $ calId = null ; $ calendarTable = $ this -> getServiceLocator ( ) -> get ( 'MelisCalendarTable' ) ; $ resultEvent = $ calendarTable -> getEntryById ( $ postValues [ 'cal_id' ] ) ; if ( ! empty ( $ resultEvent ) ) { $ event = $ resultEvent -> current ( ) ; if ( ! empty ( $ event ) ) { $ calId = $ calendarTable -> deleteById ( $ postValues [ 'cal_id' ] ) ; } } return $ calId ; }
Deleting Calendar Item Event

@param Array $postValues, this containing the calendar id $postValues['cal_id']

@return Int|null if the deletion is failed
Deleting Calendar Item Event