Index: trunk/extensions/EducationProgram/EducationProgram.i18n.alias.php |
— | — | @@ -28,5 +28,5 @@ |
29 | 29 | 'EducationProgram' => array( 'EducationProgram' ), |
30 | 30 | 'EditCourse' => array( 'EditCourse' ), |
31 | 31 | 'EditInstitution' => array( 'EditInstitution' ), |
32 | | - 'EditTerm' => array( 'EditTerm' ), |
| 32 | + 'Enroll' => array( 'Enroll' ), |
33 | 33 | ); |
Index: trunk/extensions/EducationProgram/specials/SpecialEnroll.php |
— | — | @@ -0,0 +1,40 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file SpecialEnroll.php |
| 10 | + * @ingroup EducationProgram |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 or later |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 14 | + */ |
| 15 | +class SpecialEnroll extends SpecialEPPage { |
| 16 | + |
| 17 | + /** |
| 18 | + * Constructor. |
| 19 | + * |
| 20 | + * @since 0.1 |
| 21 | + */ |
| 22 | + public function __construct() { |
| 23 | + parent::__construct( 'Enroll', 'epstudent', false ); |
| 24 | + } |
| 25 | + |
| 26 | + /** |
| 27 | + * Main method. |
| 28 | + * |
| 29 | + * @since 0.1 |
| 30 | + * |
| 31 | + * @param string $arg |
| 32 | + */ |
| 33 | + public function execute( $subPage ) { |
| 34 | + parent::execute( $subPage ); |
| 35 | + |
| 36 | + $out = $this->getOutput(); |
| 37 | + |
| 38 | + // TODO: AUTH |
| 39 | + } |
| 40 | + |
| 41 | +} |
Index: trunk/extensions/EducationProgram/includes/EPStudentPager.php |
— | — | @@ -26,14 +26,14 @@ |
27 | 27 | parent::__construct( $context, $conds, 'EPStudent' ); |
28 | 28 | } |
29 | 29 | |
30 | | - /** |
| 30 | + /** |
31 | 31 | * (non-PHPdoc) |
32 | | - * @see TablePager::getFieldNames() |
| 32 | + * @see EPPager::getFields() |
33 | 33 | */ |
34 | | - public function getFieldNames() { |
35 | | - return parent::getFieldNameList( array( |
| 34 | + public function getFields() { |
| 35 | + return array( |
36 | 36 | // TODO |
37 | | - ) ); |
| 37 | + ); |
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -61,6 +61,7 @@ |
62 | 62 | 'special-editterm-edit' => 'Edit term', |
63 | 63 | 'special-editcourse-add' => 'Add course', |
64 | 64 | 'special-editcourse-edit' => 'Edit course', |
| 65 | + 'special-enroll' => 'Enroll', |
65 | 66 | |
66 | 67 | // Special:Institutions |
67 | 68 | 'ep-institutions-nosuchinstitution' => 'There is no institution with name "$1". Existing institutions are listed below.', |
Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -82,6 +82,7 @@ |
83 | 83 | $wgAutoloadClasses['SpecialStudents'] = dirname( __FILE__ ) . '/specials/SpecialStudents.php'; |
84 | 84 | $wgAutoloadClasses['SpecialTerm'] = dirname( __FILE__ ) . '/specials/SpecialTerm.php'; |
85 | 85 | $wgAutoloadClasses['SpecialTerms'] = dirname( __FILE__ ) . '/specials/SpecialTerms.php'; |
| 86 | +$wgAutoloadClasses['SpecialEnroll'] = dirname( __FILE__ ) . '/specials/SpecialEnroll.php'; |
86 | 87 | |
87 | 88 | // Special pages |
88 | 89 | $wgSpecialPages['MyCourses'] = 'SpecialMyCourses'; |
— | — | @@ -97,6 +98,7 @@ |
98 | 99 | $wgSpecialPages['EditCourse'] = 'SpecialEditCourse'; |
99 | 100 | $wgSpecialPages['EditInstitution'] = 'SpecialEditInstitution'; |
100 | 101 | $wgSpecialPages['EditTerm'] = 'SpecialEditTerm'; |
| 102 | +$wgSpecialPages['Enroll'] = 'SpecialEnroll'; |
101 | 103 | |
102 | 104 | $wgSpecialPageGroups['MyCourses'] = 'education'; |
103 | 105 | $wgSpecialPageGroups['Institution'] = 'education'; |