Esempio n. 1
0
 public static function remove($taskId)
 {
     TasksModel::remove($taskId);
     SharesModel::remove(array('task_id' => $taskId));
     MigratedDataModel::softDelete(array('sync_task_id' => $taskId));
     \Util::notice(array('type' => 'success', 'text' => 'The task was successfully deleted. The data isn\'t shared anymore.'));
     \Router::redirect('share');
 }