public function getMenuBlockView(Student $student) { PHPWS_Core::initModClass('hms', 'RoommateProfile.php'); $profile = RoommateProfileFactory::getProfile($student->getBannerID(), $this->term); PHPWS_Core::initModClass('hms', 'StudentMenuProfileView.php'); return new StudentMenuProfileView($student, $this->getStartDate(), $this->getEndDate(), $this->term, $profile); }
public function execute(CommandContext $context) { PHPWS_Core::initModClass('hms', 'StudentFactory.php'); PHPWS_Core::initModClass('hms', 'RoommateProfile.php'); PHPWS_Core::initModClass('hms', 'RoommateProfileView.php'); $student = StudentFactory::getStudentByBannerID($context->get('banner_id'), $context->get('term')); $profile = RoommateProfileFactory::getProfile($context->get('banner_id'), $context->get('term')); $view = new RoommateProfileView($student, $profile); $context->setContent($view->show()); }
public function execute(CommandContext $context) { // TODO make sure the application feature is really enabled PHPWS_Core::initModClass('hms', 'RoommateProfile.php'); PHPWS_Core::initModClass('hms', 'RoommateProfileFormView.php'); PHPWS_Core::initModClass('hms', 'StudentFactory.php'); $term = $context->get('term'); $student = StudentFactory::getStudentByUsername(UserStatus::getUsername(), $term); $profile = RoommateProfileFactory::getProfile($student->getBannerID(), $term); $view = new RoommateProfileFormView($profile, $term); $context->setContent($view->show()); }