diff options
Diffstat (limited to 'SemanticMediaWiki/includes/specials/SpecialProperties.php')
-rw-r--r-- | SemanticMediaWiki/includes/specials/SpecialProperties.php | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/SemanticMediaWiki/includes/specials/SpecialProperties.php b/SemanticMediaWiki/includes/specials/SpecialProperties.php deleted file mode 100644 index d29ffe4f..00000000 --- a/SemanticMediaWiki/includes/specials/SpecialProperties.php +++ /dev/null @@ -1,70 +0,0 @@ -<?php - -namespace SMW; - -use SMWOutputs; - -/** - * Special page (Special:Properties) for MediaWiki shows all - * used properties - * - * @file - * - * @license GNU GPL v2+ - * @since 1.9 - * - * @author Markus Krötzsch - * @author Jeroen De Dauw - * @author mwjames - */ - -/** - * This special page for MediaWiki shows all used properties. - * - * @ingroup SpecialPage - */ -class SpecialProperties extends SpecialPage { - - /** - * @see SpecialPage::__construct - * @codeCoverageIgnore - */ - public function __construct() { - parent::__construct( 'Properties' ); - } - - /** - * @see SpecialPage::execute - */ - public function execute( $param ) { - Profiler::In( __METHOD__ ); - - $out = $this->getOutput(); - - $out->setPageTitle( $this->msg( 'properties' )->text() ); - - $page = new PropertiesQueryPage( $this->getStore(), $this->getSettings() ); - $page->setContext( $this->getContext() ); - - list( $limit, $offset ) = $this->getLimitOffset(); - $page->doQuery( $offset, $limit, $this->getRequest()->getVal( 'property' ) ); - - // Ensure locally collected output data is pushed to the output! - SMWOutputs::commitToOutputPage( $out ); - - Profiler::Out( __METHOD__ ); - } - - /** - * FIXME MW 1.24 wfCheckLimits was deprecated in MediaWiki 1.24 - */ - private function getLimitOffset() { - - if ( method_exists( $this->getRequest(), 'getLimitOffset' ) ) { - return $this->getRequest()->getLimitOffset(); - } - - return wfCheckLimits(); - } - -} |