Example #1
0
 /**
  * starts a timer
  */
 public static function start($tid)
 {
     $obj = new TimerModel();
     $obj->connectDb();
     $obj->set('task_id', $tid);
     $obj->set('start', APP_SQL_NOW);
     return $obj->insert();
 }