Esempio n. 1
0
 public function executeStop(sfWebRequest $request)
 {
     $user_id = $this->getUser()->getGuardUser()->getId();
     $uow = UowTable::getActiveUow($user_id);
     $uow->end_time = date('Y-m-d H:i:s', time());
     $uow->save();
     DaystatTable::computeUow($uow);
     $this->redirect('@homepage');
 }
Esempio n. 2
0
 public function executeActive()
 {
     $user_id = $this->getUser()->getGuardUser()->getId();
     $this->active_uow = UowTable::getActiveUow($user_id);
 }