Jeroen De Dauw has uploaded a new change for review. https://gerrit.wikimedia.org/r/60301
Change subject: DO NOT MERGE ...................................................................... DO NOT MERGE Change-Id: Ic5c6a2d78ce3e81214c4a4bd6518be7f741fc4d0 --- A includes/actions/ViewCourseActivityAction.php 1 file changed, 61 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EducationProgram refs/changes/01/60301/1 diff --git a/includes/actions/ViewCourseActivityAction.php b/includes/actions/ViewCourseActivityAction.php new file mode 100644 index 0000000..912442b --- /dev/null +++ b/includes/actions/ViewCourseActivityAction.php @@ -0,0 +1,61 @@ +<?php + +namespace EducationProgram; + + +/** + * Action for viewing a course. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @since 0.1 + * + * @ingroup EducationProgram + * @ingroup Action + * + * @licence GNU GPL v2+ + * @author Jeroen De Dauw < jeroended...@gmail.com > + */ +class ViewCourseActivityAction extends \FormlessAction { + + public function getName() { + return 'viewactivity'; + } + + public function onView() { + + $activityFetcher = new EventsFetcher(); + + $courseId = $this->getRequest()->getCheck( 'courseid' ); + $activityData = $activityFetcher->getEventsForCourse( $courseId ); + + $view = new EventsView(); + $view->display( $activityData ); + } + +} + +class EventsView { + + + +} + +class EventsFetcher { + + + +} \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/60301 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic5c6a2d78ce3e81214c4a4bd6518be7f741fc4d0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/EducationProgram Gerrit-Branch: master Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits