Example #1
0
 /**
  * delete
  * delete notification
  * 
  * @access public
  * @return boolean
  * 
  */
 public function delete($id, $notified_id)
 {
     if (!$id || !$notified_id) {
         //$this->Session->setFlash(__('Invalid request.'), 'flash_message_error');
         return;
     }
     if ($this->_model->deleteAll(array($this->_model->name . '.id' => $id, $this->_model->name . '.notified_id' => $notified_id), false)) {
         //$this->Session->setFlash(__('Deleted with success.'), 'flash_message_info');
         return;
     }
     //$this->Session->setFlash(__( 'Could not be deleted.'), 'flash_message_error');
     return;
 }
Example #2
0
 /**
  * delete
  * delete notification
  * 
  * @access public
  * @return boolean
  * 
  */
 public function delete($id, $notified_id)
 {
     if (!$id || !$notified_id) {
         //$this->Flash->error(__('Invalid request.'));
         return;
     }
     if ($this->_model->deleteAll(array($this->_model->name . '.id' => $id, $this->_model->name . '.notified_id' => $notified_id), false)) {
         //$this->Flash->info(__('Deleted with success.'));
         return;
     }
     //$this->Flash->error(__( 'Could not be deleted.'));
     return;
 }
Example #3
0
 public function decodeDeleteCalendarSignatureAlarm(&$uri, &$params, &$criteria, $original)
 {
     if ($original['URI']['id'] == '' && isset($original['criteria']['filter'])) {
         Controller::deleteAll(array('concept' => 'calendarSignatureAlarm'), null, $original['criteria']);
         return false;
     }
 }