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 @@ |
71 | 71 | * |
72 | 72 | * @since 1.3.2 |
73 | 73 | */ |
74 | | - const VERSION = '1.3.4 alpha'; |
| 74 | + const VERSION = '1.4 alpha'; |
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Store for arrays. |
Index: trunk/extensions/ArrayExtension/RELEASE-NOTES |
— | — | @@ -1,9 +1,14 @@ |
2 | 2 | Changelog: |
3 | 3 | ========== |
4 | | - * (trunk) version 1.3.4 |
| 4 | + * (trunk) version 1.4 |
5 | 5 | - 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 | + |
8 | 13 | * January 24, 2011 version 1.3.2 |
9 | 14 | - New public class methods for creating and removing arrays. Good for use by other extensions. |
10 | 15 | - VERSION constant added to ArrayExtension class |
— | — | @@ -12,11 +17,11 @@ |
13 | 18 | |
14 | 19 | * July 5, 2010 version 1.3 |
15 | 20 | - 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' |
19 | 24 | 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 |
21 | 26 | - now using preg_quote in arraydefine when using a non regular expression delimiter |
22 | 27 | - some minor code changes and cleanup |
23 | 28 | |
— | — | @@ -43,30 +48,30 @@ |
44 | 49 | * April 18, 2009 version 1.1.6 |
45 | 50 | - fixed a bug in arraymerge and arrayslice, |
46 | 51 | * 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 |
49 | 54 | * 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 |
51 | 56 | * Feb 23, 2009 version 1.1.3 |
52 | | - - fixed #arraysearch, "Warning: Missing argument 4..." |
| 57 | + - fixed '#arraysearch,' "Warning: Missing argument 4..." |
53 | 58 | * 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 |
55 | 60 | * 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 |
58 | 63 | * Feb 5, 2009 version 1.1 |
59 | | - - update #arraydefine: replacing 'explode' by 'preg_split', |
| 64 | + - update '#arraydefine:' replacing 'explode' by 'preg_split', |
60 | 65 | 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", |
62 | 67 | 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' |
71 | 76 | - add safty check code to avoid unset parameters |
72 | 77 | |
73 | 78 | * Feb 1, 2009 version 1.0.3 |
— | — | @@ -80,7 +85,7 @@ |
81 | 86 | |
82 | 87 | ------------------------------------------- |
83 | 88 | 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) |
87 | 92 | ------------------------------------------- |
\ 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 |