getControlState('user'); } public function setUserToDisplay(DbUser $user) { $this->setControlState('user', $user); } public function getEvents() { return $this->_getEventsForUser($this->UserToDisplay); } private function _getEventsForUser(DbUser $user) { $utc = new DateTimeZone('UTC'); $dateFrom = new DateTime('now', $utc); $dateTo = new DateTime('+7 days', $utc); return $this->getFacade()->getTimeframeListForUser( $user, $dateFrom, $dateTo ); } } ?>