コード例 #1
0
 public function cleanUp()
 {
     if (!$this->keepReminders) {
         $queue = new w2p_System_EventQueue();
         $reminders = $queue->find('tasks', 'remind');
         $queue->delete_list = array_keys($reminders);
         $queue->commit_updates();
     }
 }
コード例 #2
0
ファイル: tasks.class.php プロジェクト: victorrod/web2project
 /**
  *
  */
 public function clearReminder($dont_check = false)
 {
     $ev = new w2p_System_EventQueue();
     $event_list = $ev->find('tasks', 'remind', $this->task_id);
     if (count($event_list)) {
         foreach ($event_list as $id => $notUsed) {
             if ($dont_check || $this->task_percent_complete >= 100) {
                 $ev->remove($id);
             }
         }
     }
 }