Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -0,0 +1,23 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * SpecialPage for ArticleFeedback extension |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +class SpecialArticleFeedback extends SpecialPage { |
| 11 | + |
| 12 | + /* Methods */ |
| 13 | + |
| 14 | + public function __construct() { |
| 15 | + parent::__construct( 'ArticleFeedback' ); |
| 16 | + } |
| 17 | + |
| 18 | + public function execute( $par ) { |
| 19 | + global $wgUser, $wgOut, $wgRequest; |
| 20 | + |
| 21 | + $this->setHeaders(); |
| 22 | + $wgOut->addHtml( '<div class="articleFeedback-dashboard"><h2>Hello dashboard!</h2></div>' ); |
| 23 | + } |
| 24 | +} |
Property changes on: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 25 | + native |
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.alias.php |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for Special:ArticleFeedback |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$specialPageAliases = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author Trevor Parscal |
| 14 | + */ |
| 15 | +$specialPageAliases['en'] = array( |
| 16 | + 'ArticleFeedback' => array( 'ArticleFeedback' ), |
| 17 | +); |
Property changes on: trunk/extensions/ArticleFeedback/ArticleFeedback.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 18 | + native |
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.php |
— | — | @@ -120,7 +120,9 @@ |
121 | 121 | $wgAutoloadClasses['ApiQueryArticleFeedback'] = $dir . 'api/ApiQueryArticleFeedback.php'; |
122 | 122 | $wgAutoloadClasses['ApiArticleFeedback'] = $dir . 'api/ApiArticleFeedback.php'; |
123 | 123 | $wgAutoloadClasses['ArticleFeedbackHooks'] = $dir . 'ArticleFeedback.hooks.php'; |
| 124 | +$wgAutoloadClasses['SpecialArticleFeedback'] = $dir . 'SpecialArticleFeedback.php'; |
124 | 125 | $wgExtensionMessagesFiles['ArticleFeedback'] = $dir . 'ArticleFeedback.i18n.php'; |
| 126 | +$wgExtensionAliasesFiles['ArticleFeedback'] = $dir . 'ArticleFeedback.alias.php'; |
125 | 127 | // Hooks |
126 | 128 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'ArticleFeedbackHooks::loadExtensionSchemaUpdates'; |
127 | 129 | $wgHooks['ParserTestTables'][] = 'ArticleFeedbackHooks::parserTestTables'; |
— | — | @@ -130,3 +132,6 @@ |
131 | 133 | // API Registration |
132 | 134 | $wgAPIListModules['articlefeedback'] = 'ApiQueryArticleFeedback'; |
133 | 135 | $wgAPIModules['articlefeedback'] = 'ApiArticleFeedback'; |
| 136 | +// Special Page |
| 137 | +$wgSpecialPages['ArticleFeedback'] = 'SpecialArticleFeedback'; |
| 138 | +$wgSpecialPageGroups['ArticleFeedback'] = 'other'; |