r103381 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103380‎ | r103381 | r103382 >
Date:20:59, 16 November 2011
Author:danwe
Status:deferred
Tags:
Comment:
Version increased to 1.4 since next update will be more significant. INSTALL file removed and replaced with more user-friendly introductions in README file. More developer specific info can be found on mediawiki.org anyway
Modified paths:
  • /trunk/extensions/ArrayExtension/ArrayExtension.php (modified) (history)
  • /trunk/extensions/ArrayExtension/INSTALL (deleted) (history)
  • /trunk/extensions/ArrayExtension/README (modified) (history)
  • /trunk/extensions/ArrayExtension/RELEASE-NOTES (modified) (history)

Diff [purge]

Index: trunk/extensions/ArrayExtension/INSTALL
@@ -1,28 +0,0 @@
2 -This is the install file for the 'ArrayExtension' extension.
3 -
4 -Extension page on mediawiki.org: http://www.mediawiki.org/wiki/Extension:ArrayExtension
5 -Latest version of this install file: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ArrayExtension/INSTALL?view=co
6 -
7 -
8 -== Download ==
9 -
10 -You can download a snapshot of 'ArrayExtension' via the Wikimedia extension distributor at
11 -https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Special:ExtensionDistributor/ArrayExtension
12 -
13 -You can also get the code directly from SVN. Tags can be obtained via
14 -
15 - svn checkout <nowiki>http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/ArrayExtension/REL_version</nowiki>
16 -
17 -Where 'version' is the version number of the tag, such as 0_1 (see the [http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/ArrayExtension/ available tags]).
18 -The latest code can be obtained from trunk:
19 -
20 - svn checkout <nowiki>http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ArrayExtension/</nowiki>
21 -
22 -
23 -== Installation ==
24 -
25 -Once you have downloaded the code, place the 'ArrayExtension' directory within your
26 -MediaWiki 'extensions' directory. Then add the following code to your [[Manual:LocalSettings.php|LocalSettings.php]] file:
27 -
28 - # ArrayExtension
29 - require_once( "$IP/extensions/ArrayExtension/ArrayExtension.php" );
Index: trunk/extensions/ArrayExtension/ArrayExtension.php
@@ -70,7 +70,7 @@
7171 *
7272 * @since 1.3.2
7373 */
74 - const VERSION = '1.3.4 alpha';
 74+ const VERSION = '1.4 alpha';
7575
7676 /**
7777 * Store for arrays.
Index: trunk/extensions/ArrayExtension/RELEASE-NOTES
@@ -1,9 +1,14 @@
22 Changelog:
33 ==========
4 - * (trunk) version 1.3.4
 4+ * (trunk) version 1.4
55 - arrayprint will handle <includeonly>/<noinclude> correct in case its used in a template.
6 - - moved into mediawiki.org SVN
7 -
 6+ - Internationalization in several languages added.
 7+ - moved into mediawiki.org svn repository.
 8+ @ToDo before release:
 9+ - As in Variables 2.0, one store per Parser should be used.
 10+ - ''#arraysearch'' should not expand both, 'yes' and 'no', just the one actual case.
 11+
 12+
813 * January 24, 2011 version 1.3.2
914 - New public class methods for creating and removing arrays. Good for use by other extensions.
1015 - VERSION constant added to ArrayExtension class
@@ -12,11 +17,11 @@
1318
1419 * July 5, 2010 version 1.3
1520 - update arrayunion and arraydiff, fixed heavy bug (gaps between array indexes doing some serious trouble in other arrayfunctions like arraysearch)
16 - - array function #arraysearcharray added
17 - - #arraysearch code cleanup, search parameter is optional now, searching for empty elements is possible now
18 - - advanced check for regular expressions in #arraysearch, #arraydefine and #arraysearcharray
 21+ - array function ''#arraysearcharray'' added
 22+ - '#arraysearch' code cleanup, search parameter is optional now, searching for empty elements is possible now
 23+ - advanced check for regular expressions in '#arraysearch,' '#arraydefine' and '#arraysearcharray'
1924 Pivate function isValidRegEx() added
20 - - #arraymerge bug fixed: Php message in case of non existant seccond array
 25+ - '#arraymerge' bug fixed: Php message in case of non existant seccond array
2126 - now using preg_quote in arraydefine when using a non regular expression delimiter
2227 - some minor code changes and cleanup
2328
@@ -43,30 +48,30 @@
4449 * April 18, 2009 version 1.1.6
4550 - fixed a bug in arraymerge and arrayslice,
4651 * Mar 17, 2009 version 1.1.5
47 - - update #arraysort, add "reverse" option, http://us3.php.net/manual/en/function.array-reverse.php
48 - - update #arrayreset, add option to reset a selection of arrays
 52+ - update '#arraysort,' add "reverse" option, http://us3.php.net/manual/en/function.array-reverse.php
 53+ - update '#arrayreset,' add option to reset a selection of arrays
4954 * Feb 23, 2009 version 1.1.4
50 - - fixed #arraysearch, better recognize perl patterns identified by starting with "/", http://www.perl.com/doc/manual/html/pod/perlre.html
 55+ - fixed '#arraysearch,' better recognize perl patterns identified by starting with "/", http://www.perl.com/doc/manual/html/pod/perlre.html
5156 * Feb 23, 2009 version 1.1.3
52 - - fixed #arraysearch, "Warning: Missing argument 4..."
 57+ - fixed '#arraysearch,' "Warning: Missing argument 4..."
5358 * Feb 9, 2009 version 1.1.2
54 - - update #arraysearch, now support offset and preg regular expression
 59+ - update '#arraysearch,' now support offset and preg regular expression
5560 * Feb 8, 2009 version 1.1.1
56 - - update #arrayprint, now wiki links, parser functions and templates properly parsed. This enables foreach loop call.
57 - - update #arraysearch, now allows customized output upon found/non-found by specifying additional parameters
 61+ - update '#arrayprint,' now wiki links, parser functions and templates properly parsed. This enables foreach loop call.
 62+ - update '#arraysearch,' now allows customized output upon found/non-found by specifying additional parameters
5863 * Feb 5, 2009 version 1.1
59 - - update #arraydefine: replacing 'explode' by 'preg_split',
 64+ - update '#arraydefine:' replacing 'explode' by 'preg_split',
6065 and we now allow delimitors to be (i) a string; or (ii) a perl regular expressnion pattern, sourrounded by '/', e.g. '/..blah.../'
61 - - update #arrayprint, change parameters from "prefix","suffix" to a "template",
 66+ - update '#arrayprint,' change parameters from "prefix","suffix" to a "template",
6267 and users can replace a substring in the template with array value, similar to arraymap in semantic forms
63 - - update #arrayunique, empty elements will be removed
64 - - update #arraysort: adding "random" option to make the array of values in random order
65 - - add #arrayreset to free all defined arrays for memory saving
66 - - add #arrayslice to return an array bounded by start_index and length.
67 - - add #arraysearch. now we can return the index of the first occurence of an element, return -1 if not found
68 - - remove #arraymember, obsoleted by #arraysearch
69 - - remove #arraypush, obsoleted by #arraydefine and #arraymerge
70 - - remove #arraypop, obsoleted by #arrayslice
 68+ - update '#arrayunique,' empty elements will be removed
 69+ - update '#arraysort:' adding "random" option to make the array of values in random order
 70+ - add '#arrayreset' to free all defined arrays for memory saving
 71+ - add '#arrayslice' to return an array bounded by start_index and length.
 72+ - add '#arraysearch.' now we can return the index of the first occurence of an element, return -1 if not found
 73+ - remove '#arraymember,' obsoleted by '#arraysearch'
 74+ - remove '#arraypush,' obsoleted by '#arraydefine' and '#arraymerge'
 75+ - remove '#arraypop,' obsoleted by '#arrayslice'
7176 - add safty check code to avoid unset parameters
7277
7378 * Feb 1, 2009 version 1.0.3
@@ -80,7 +85,7 @@
8186
8287 -------------------------------------------
8388 the following fuctions are obsoleted
84 - #arraypush (replaced by arraymerge)
85 - #arraypop (replaced by arrayslice)
86 - #arraymember (replaced by arraysearch)
 89+ '#arraypush' (replaced by arraymerge)
 90+ '#arraypop' (replaced by arrayslice)
 91+ '#arraymember' (replaced by arraysearch)
8792 -------------------------------------------
\ No newline at end of file
Index: trunk/extensions/ArrayExtension/README
@@ -0,0 +1,26 @@
 2+== About ==
 3+
 4+The 'Arrays' extension Enhances the parser with functions to handle arrays within
 5+wiki markup text.
 6+
 7+* Website: http://www.mediawiki.org/wiki/Extension:Arrays
 8+* Authors: Li Ding, Jie Bao, Daniel Werner < danweetz@web.de >
 9+* License: MIT license
 10+
 11+
 12+== Installation ==
 13+
 14+Once you have downloaded the code, place the 'Array' directory within your
 15+MediaWiki 'extensions' directory. Then add the following code to your
 16+[[Manual:LocalSettings.php|LocalSettings.php]] file:
 17+
 18+ # Arrays
 19+ require_once( "$IP/extensions/ArrayExtension/ArrayExtension.php" );
 20+
 21+
 22+== Contributing ==
 23+
 24+If you have bug reports or feature requests, please add them to the 'Arrays'
 25+Talk page [0]. You can also send them to Daniel Werner < danweetz@web.de >
 26+
 27+[0] http://www.mediawiki.org/w/index.php?title=Extension_talk:Arrays

Status & tagging log