public function executeIgnoreMissingBooking(sfWebRequest $request) { $missing_item = MissingTimeItemEntryTable::getInstance()->find($request->getParameter('id')); if ($missing_item) { $missing_item->ignored_at = date('Y-m-d H:i:s'); $missing_item->save(); } $this->redirect('dashboard/index?missing_page=' . $request->getParameter('missing_page')); }
public function executeMissingBookings(sfWebRequest $request) { $filter = $this->checkFilter($request); $account_id = $this->getUser()->getAttribute('account_id'); $pagesize = $request->getParameter('pagesize', 20); $this->no_bookings_pager = new sfDoctrinePager('MissingTimeItemEntry', $pagesize); $this->no_bookings_pager->setQuery(MissingTimeItemEntryTable::getInstance()->getFilterQuery($filter, $this->getUser()->getAttribute('uid'), $account_id)); $this->no_bookings_pager->setPage($request->getParameter('page', 1)); $this->no_bookings_pager->init(); $account_id = $this->getUser()->getAttribute('account_id'); $this->users = UserTable::getInstance()->findByAccountId($account_id); $this->user = UserTable::getInstance()->find($this->getUser()->getAttribute('uid')); }