r87554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87553‎ | r87554 | r87555 >
Date:18:07, 6 May 2011
Author:jeroendedauw
Status:deferred (Comments)
Tags:
Comment:
importing SemanticWatchlist extension
Modified paths:
  • /trunk/extensions/SemanticWatchlist (added) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php (added) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php (added) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.php (added) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.settings.php (added) (history)
  • /trunk/extensions/SemanticWatchlist/api (added) (history)
  • /trunk/extensions/SemanticWatchlist/includes (added) (history)
  • /trunk/extensions/SemanticWatchlist/specials (added) (history)

Diff [purge]

Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
@@ -0,0 +1,30 @@
 2+<?php
 3+
 4+/**
 5+ * Internationalization file for the Semantic Watchlist extension.
 6+ *
 7+ * @since 0.1
 8+ *
 9+ * @file SemanticWatchlist.i18n.php
 10+ * @ingroup SemanticWatchlist
 11+ *
 12+ * @licence GNU GPL v3+
 13+ * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 14+ */
 15+
 16+$messages = array();
 17+
 18+/** English
 19+ * @author Jeroen De Dauw
 20+ */
 21+$messages['en'] = array(
 22+ 'semanticwatchlist-desc' => 'Semantic Watchlist is an extension ...',
 23+
 24+);
 25+
 26+/** Message documentation (Message documentation)
 27+ * @author Jeroen De Dauw
 28+ */
 29+$messages['qqq'] = array(
 30+ 'semanticwatchlist-desc' => '{{desc}}',
 31+);
\ No newline at end of file
Property changes on: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
___________________________________________________________________
Added: svn:eol-style
132 + native
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.settings.php
@@ -0,0 +1,21 @@
 2+<?php
 3+
 4+/**
 5+ * File defining the settings for the Semantic Watchlist extension.
 6+ * More info can be found at http://www.mediawiki.org/wiki/Extension:Semantic_Watchlist#Settings
 7+ *
 8+ * NOTICE:
 9+ * Changing one of these settings can be done by copieng or cutting it,
 10+ * and placing it in LocalSettings.php, AFTER the inclusion of this extension.
 11+ *
 12+ * @file SemanticWatchlist.Settings.php
 13+ * @ingroup SemanticWatchlist
 14+ *
 15+ * @licence GNU GPL v3+
 16+ * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 17+ */
 18+
 19+if ( !defined( 'MEDIAWIKI' ) ) {
 20+ die( 'Not an entry point.' );
 21+}
 22+
Property changes on: trunk/extensions/SemanticWatchlist/SemanticWatchlist.settings.php
___________________________________________________________________
Added: svn:eol-style
123 + native
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.php
@@ -0,0 +1,65 @@
 2+<?php
 3+
 4+/**
 5+ * Initialization file for the Semantic Watchlist extension.
 6+ *
 7+ * Documentation: http://www.mediawiki.org/wiki/Extension:Semantic_Watchlist
 8+ * Support http://www.mediawiki.org/wiki/Extension_talk:Semantic_Watchlist
 9+ * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticWatchlist
 10+ *
 11+ * @file SemanticWatchlist.php
 12+ * @ingroup SemanticWatchlist
 13+ *
 14+ * @licence GNU GPL v3+
 15+ * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 16+ */
 17+
 18+/**
 19+ * This documenation group collects source code files belonging to Semantic Watchlist.
 20+ *
 21+ * @defgroup SemanticWatchlist Semantic Watchlist
 22+ */
 23+
 24+if ( !defined( 'MEDIAWIKI' ) ) {
 25+ die( 'Not an entry point.' );
 26+}
 27+
 28+if ( version_compare( $wgVersion, '1.17', '<' ) ) {
 29+ die( 'Semantic Watchlist requires MediaWiki 1.17 or above.' );
 30+}
 31+
 32+define( 'SemanticWatchlist_VERSION', '0.1 alpha' );
 33+
 34+$wgExtensionCredits['other'][] = array(
 35+ 'path' => __FILE__,
 36+ 'name' => 'Semantic Watchlist',
 37+ 'version' => SemanticWatchlist_VERSION,
 38+ 'author' => array(
 39+ '[http://www.mediawiki.org/wiki/User:Jeroen_De_Dauw Jeroen De Dauw] for WikiWorks',
 40+ ),
 41+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Watchlist',
 42+ 'descriptionmsg' => 'semanticwatchlist-desc'
 43+);
 44+
 45+$egSAScriptPath = $wgExtensionAssetsPath === false ? $wgScriptPath . '/extensions/SemanticWatchlist' : $wgExtensionAssetsPath . '/SemanticWatchlist';
 46+
 47+$wgExtensionMessagesFiles['SemanticWatchlist'] = dirname( __FILE__ ) . '/SemanticWatchlist.i18n.php';
 48+
 49+$egSAJSMessages = array(
 50+);
 51+
 52+// For backward compatibility with MW < 1.17.
 53+if ( defined( 'MW_SUPPORTS_RESOURCE_MODULES' ) ) {
 54+ $moduleTemplate = array(
 55+ 'localBasePath' => dirname( __FILE__ ),
 56+ 'remoteBasePath' => $egIncWPScriptPath
 57+ );
 58+
 59+ $wgResourceModules['ext.incwp'] = $moduleTemplate + array(
 60+ 'scripts' => 'ext.incwp.js',
 61+ 'dependencies' => array(),
 62+ 'messages' => $egIncWPJSMessages
 63+ );
 64+}
 65+
 66+require_once 'SemanticWatchlist.settings.php';
Property changes on: trunk/extensions/SemanticWatchlist/SemanticWatchlist.php
___________________________________________________________________
Added: svn:eol-style
167 + native
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php
@@ -0,0 +1,18 @@
 2+<?php
 3+
 4+/**
 5+ * Static class for hooks handled by the Semantic Watchlist extension.
 6+ *
 7+ * @since 0.1
 8+ *
 9+ * @file SemanticWatchlist.hooks.php
 10+ * @ingroup SemanticWatchlist
 11+ *
 12+ * @licence GNU GPL v3+
 13+ * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 14+ */
 15+final class SWLHooks {
 16+
 17+
 18+
 19+}
\ No newline at end of file
Property changes on: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php
___________________________________________________________________
Added: svn:eol-style
120 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r87559follow up to r87554jeroendedauw18:24, 6 May 2011

Comments

#Comment by 😂 (talk | contribs)   18:34, 6 May 2011

final? Afraid of somebody subclassing you? :)

#Comment by Jeroen De Dauw (talk | contribs)   19:03, 6 May 2011

Yeah, you never know what those evil developers might be up to!

Status & tagging log