r41484 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41483‎ | r41484 | r41485 >
Date:15:20, 1 October 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Removed obsolete files
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Data.php (deleted) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Hooks.php (deleted) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_TemplateDeclare.php (deleted) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Data.php
@@ -1,35 +0,0 @@
2 -<?php
3 -/**
4 - * Introducing a #set parser function as an alternative to
5 - * annotationg with the [[p::o]] syntax.
6 - * @file
7 - * @ingroup SMW
8 - * @author Denny Vrandecic
9 - */
10 -
11 -global $wgExtensionFunctions, $wgHooks;
12 -$wgExtensionFunctions[] = 'smwfDataEntry_Setup';
13 -$wgHooks['LanguageGetMagic'][] = 'smwfDataEntry_Magic';
14 -
15 -/**
16 - * Hooks the data parser function.
17 - */
18 -function smwfDataEntry_Setup() {
19 - global $wgParser;
20 - // Set a function hook associating "set" magic word with our function
21 - $wgParser->setFunctionHook( 'set', 'smwfDataEntry_Render' );
22 -}
23 -
24 -/**
25 - * Add the magic word for the dataparser function.
26 - */
27 -function smwfDataEntry_Magic( &$magicWords, $langCode ) {
28 - // Add the magic word
29 - // The first array element is case sensitive, in this case it is not case sensitive
30 - // All remaining elements are synonyms for our parser function
31 - $magicWords['set'] = array( 0, 'set' );
32 - // unless we return true, other parser functions extensions won't get loaded.
33 - return true;
34 -}
35 -
36 -
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Hooks.php
@@ -1,13 +0,0 @@
2 -<?php
3 -/**
4 - * This file contains various global functions that are used in hooks.
5 - * @file
6 - * @ingroup SMW
7 - * @author Klaus Lassleben
8 - * @author Markus Krötzsch
9 - * @author Kai Hüner
10 - */
11 -
12 -//// Parsing annotations
13 -
14 -
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_TemplateDeclare.php
@@ -1,38 +0,0 @@
2 -<?php
3 -/**
4 - * Introducing a #declare parser function in order to declare the arguments
5 - * of a template call, i.e. on a template page we say
6 - * {{#declare:Author=Author#list|Publisher=editor}}
7 - * and then, when the template is included in a page, the values set for the
8 - * fields are taken as annotations.
9 - * @file
10 - * @ingroup SMW
11 - * @author Denny Vrandecic
12 - */
13 -
14 -global $wgExtensionFunctions, $wgHooks;
15 -$wgExtensionFunctions[] = 'smwfTemplateDeclare_Setup';
16 -$wgHooks['LanguageGetMagic'][] = 'smwfTemplateDeclare_Magic';
17 -
18 -/**
19 - * Sets up the declare parser function.
20 - */
21 -function smwfTemplateDeclare_Setup() {
22 - global $wgParser;
23 - // Set a function hook associating "declare" magic word with our function
24 - $wgParser->setFunctionHook( 'declare', 'smwfTemplateDeclare_Render', SFH_OBJECT_ARGS );
25 -}
26 -
27 -/**
28 - * Adds the declare magic word.
29 - */
30 -function smwfTemplateDeclare_Magic( &$magicWords, $langCode ) {
31 - // Add the magic word
32 - // The first array element is case sensitive, in this case it is not case sensitive
33 - // All remaining elements are synonyms for our parser function
34 - $magicWords['declare'] = array( 0, 'declare' );
35 - // unless we return true, other parser functions extensions won't get loaded.
36 - return true;
37 -}
38 -
39 -

Status & tagging log