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'); }
public function executeActive() { $user_id = $this->getUser()->getGuardUser()->getId(); $this->active_uow = UowTable::getActiveUow($user_id); }