Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php |
— | — | @@ -0,0 +1,42 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * This special page for Semantic MediaWiki implements a customisable form for |
| 6 | + * executing queries outside of articles. Results are generated by |
| 7 | + * SMW_SpecialAsk.php. This page is currently under development as part of |
| 8 | + * the Google Summer of Code 2011 Program. |
| 9 | + * |
| 10 | + * @file SMW_SpecialQueryCreator.php |
| 11 | + * @ingroup SMWSpecialPage |
| 12 | + * @ingroup SpecialPage |
| 13 | + * |
| 14 | + * @author Markus Krötzsch |
| 15 | + * @author Yaron Koren |
| 16 | + * @author Sanyam Goyal |
| 17 | + * @author Jeroen De Dauw |
| 18 | + * @author Devayon Das |
| 19 | + * |
| 20 | + */ |
| 21 | +class SMWQueryCreatorPage extends SpecialPage { |
| 22 | + |
| 23 | + /** |
| 24 | + * Constructor. |
| 25 | + */ |
| 26 | + public function __construct() { |
| 27 | + parent::__construct( 'QueryCreator' ); |
| 28 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 29 | + } |
| 30 | + |
| 31 | + /** |
| 32 | + * Main entrypoint for the special page. |
| 33 | + * |
| 34 | + * @param string $p |
| 35 | + */ |
| 36 | + public function execute( $p ) { |
| 37 | + global $wgOut, $wgRequest, $smwgQEnabled; |
| 38 | + $this->setHeaders(); |
| 39 | + $wgOut->addWikiText( "Hi. This page isn't ready for viewing yet. May I suggest you view [[Special:Ask]]"); |
| 40 | + } |
| 41 | + |
| 42 | +} |
| 43 | + |
Property changes on: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 44 | + native |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php |
— | — | @@ -238,6 +238,10 @@ |
239 | 239 | $wgSpecialPages['Ask'] = 'SMWAskPage'; |
240 | 240 | $wgSpecialPageGroups['Ask'] = 'smw_group'; |
241 | 241 | |
| 242 | + $wgAutoloadClasses['SMWQueryCreatorPage'] = $smwgIP . 'specials/AskSpecial/SMW_SpecialQueryCreator.php'; |
| 243 | + $wgSpecialPages['QueryCreator'] = 'SMWQueryCreatorPage'; |
| 244 | + $wgSpecialPageGroups['QueryCreator'] = 'smw_group'; |
| 245 | + |
242 | 246 | $wgAutoloadClasses['SMWSpecialBrowse'] = $smwgIP . 'specials/SearchTriple/SMW_SpecialBrowse.php'; |
243 | 247 | $wgSpecialPages['Browse'] = 'SMWSpecialBrowse'; |
244 | 248 | $wgSpecialPageGroups['Browse'] = 'smw_group'; |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -212,6 +212,7 @@ |
213 | 213 | |
214 | 214 | // Messages for ask Special |
215 | 215 | 'ask' => 'Semantic search', |
| 216 | + 'querycreator' => 'Query creator', |
216 | 217 | 'smw_ask_doculink' => 'http://semantic-mediawiki.org/wiki/Help:Semantic_search', |
217 | 218 | 'smw_ask_sortby' => 'Sort by column (optional)', |
218 | 219 | 'smw_ask_ascorder' => 'Ascending', |