Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -305,6 +305,7 @@ |
306 | 306 | 'ep.api.js', |
307 | 307 | ), |
308 | 308 | 'dependencies' => array( |
| 309 | + 'mediawiki.user', |
309 | 310 | 'ep.core', |
310 | 311 | ), |
311 | 312 | ); |
— | — | @@ -381,6 +382,7 @@ |
382 | 383 | 'ep.instructor.js', |
383 | 384 | ), |
384 | 385 | 'dependencies' => array( |
| 386 | + 'mediawiki.user', |
385 | 387 | 'jquery.ui.dialog', |
386 | 388 | 'ep.core', |
387 | 389 | 'ep.api', |
Index: trunk/extensions/EducationProgram/pages/CoursePage.php |
— | — | @@ -1,7 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | - |
5 | | - |
| 4 | +/** |
| 5 | + * Page for interacting with a course. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file CoursePage.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Page |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
6 | 16 | class CoursePage extends EPPage { |
7 | 17 | |
8 | 18 | protected function getActions() { |
Index: trunk/extensions/EducationProgram/pages/EPPage.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Abstract Page for interacting with a EPDBObject. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file EPPage.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Page |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | abstract class EPPage extends Page implements IContextSource { |
5 | 17 | |
6 | 18 | protected $context; |
— | — | @@ -9,6 +21,10 @@ |
10 | 22 | $this->page = new WikiPage( $title ); |
11 | 23 | } |
12 | 24 | |
| 25 | + public function view() { |
| 26 | + // MediaWiki::articleFromTitle($title, $context) |
| 27 | + } |
| 28 | + |
13 | 29 | public function setContext( IContextSource $context ) { |
14 | 30 | $this->context = $context; |
15 | 31 | } |
Index: trunk/extensions/EducationProgram/pages/OrgPage.php |
— | — | @@ -1,6 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | - |
| 4 | +/** |
| 5 | + * Page for interacting with an org. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file OrgPage.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Page |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
5 | 16 | class OrgPage extends EPPage { |
6 | 17 | |
7 | 18 | protected function getActions() { |
Index: trunk/extensions/EducationProgram/actions/ViewCourseAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Action for viewing a course. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file ViewCourseAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | class ViewCourseAction extends EPViewAction { |
5 | 17 | |
6 | 18 | public function getName() { |
Index: trunk/extensions/EducationProgram/actions/EditOrgAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Action to edit an org. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file EditOrgAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | class EditOrgAction extends EPEditAction { |
5 | 17 | |
6 | 18 | |
Index: trunk/extensions/EducationProgram/actions/EPViewAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Abstract action for viewing EPDBObject items. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file EPViewAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | abstract class EPViewAction extends FormlessAction { |
5 | 17 | |
6 | 18 | /** |
Index: trunk/extensions/EducationProgram/actions/CourseHistoryAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Action to view the history of courses. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file CourseHistoryAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | class CourseHistoryAction extends EPHistoryAction { |
5 | 17 | |
6 | 18 | |
Index: trunk/extensions/EducationProgram/actions/ViewOrgAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Action for viewing an org. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file ViewOrgAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | class ViewOrgAction extends EPViewAction { |
5 | 17 | |
6 | 18 | public function getName() { |
Index: trunk/extensions/EducationProgram/actions/EPHistoryAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Abstract action for viewing the history of EPDBObject items. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file EPHistoryAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | abstract class EPHistoryAction extends FormlessAction { |
5 | 17 | |
6 | 18 | protected abstract function getItemClass(); |
Index: trunk/extensions/EducationProgram/actions/EditCourseAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Action to edit a course. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file EditCourseAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | class EditCourseAction extends EPEditAction { |
5 | 17 | |
6 | 18 | |
Index: trunk/extensions/EducationProgram/actions/OrgHistoryAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Action to view the history of orgs. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file OrgHistoryAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | class OrgHistoryAction extends EPHistoryAction { |
5 | 17 | |
6 | 18 | |
Index: trunk/extensions/EducationProgram/actions/EPEditAction.php |
— | — | @@ -1,5 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Abstract action for editing EPDBObject items. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file EPEditAction.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * @ingroup Action |
| 12 | + * |
| 13 | + * @licence GNU GPL v3+ |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 15 | + */ |
4 | 16 | abstract class EPEditAction extends FormlessAction { |
5 | 17 | |
6 | 18 | /** |
Index: trunk/extensions/EducationProgram/api/ApiRefreshEducation.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * @since 0.1 |
8 | 8 | * |
9 | 9 | * @file ApiRefreshEducation.php |
10 | | - * @ingroup Education Program |
| 10 | + * @ingroup EducationProgram |
11 | 11 | * @ingroup API |
12 | 12 | * |
13 | 13 | * @licence GNU GPL v3+ |
Index: trunk/extensions/EducationProgram/api/ApiInstructor.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * @since 0.1 |
8 | 8 | * |
9 | 9 | * @file ApiInstructor.php |
10 | | - * @ingroup Education Program |
| 10 | + * @ingroup EducationProgram |
11 | 11 | * @ingroup API |
12 | 12 | * |
13 | 13 | * @licence GNU GPL v3+ |
Index: trunk/extensions/EducationProgram/api/ApiDeleteEducation.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * @since 0.1 |
8 | 8 | * |
9 | 9 | * @file ApiDeleteEducation.php |
10 | | - * @ingroup Education Program |
| 10 | + * @ingroup EducationProgram |
11 | 11 | * @ingroup API |
12 | 12 | * |
13 | 13 | * @licence GNU GPL v3+ |