Index: trunk/extensions/ExternalData/ExternalData.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | $wgExtensionCredits['parserhook'][] = array( |
14 | 14 | 'path' => __FILE__, |
15 | 15 | 'name' => 'External Data', |
16 | | - 'version' => '1.2.3', |
| 16 | + 'version' => '1.3', |
17 | 17 | 'author' => array( 'Yaron Koren', 'Michael Dale', 'David Macdonald' ), |
18 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:External_Data', |
19 | 19 | 'descriptionmsg' => 'externaldata-desc', |
— | — | @@ -24,11 +24,11 @@ |
25 | 25 | if ( version_compare( $wgVersion, '1.16alpha', '>=' ) ) { |
26 | 26 | $wgExtensionMessagesFiles['ExternalDataMagic'] = dirname(__FILE__) . '/ExternalData.i18n.magic.php'; |
27 | 27 | } else { |
28 | | - // Pre 1.16alpha backward compatibility for magic words |
| 28 | + // Pre-1.16alpha backward compatibility for magic words |
29 | 29 | $wgHooks['LanguageGetMagic'][] = 'edgLanguageGetMagic'; |
30 | 30 | } |
31 | 31 | |
32 | | -// register all special pages and other classes |
| 32 | +// Register all special pages and other classes |
33 | 33 | $wgAutoloadClasses['EDUtils'] = dirname(__FILE__) . '/ED_Utils.php'; |
34 | 34 | $wgAutoloadClasses['EDParserFunctions'] = dirname(__FILE__) . '/ED_ParserFunctions.php'; |
35 | 35 | $wgSpecialPages['GetData'] = 'EDGetData'; |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | $edgCacheTable = null; |
42 | 42 | $edgAllowSSL = true; |
43 | 43 | |
44 | | -// (in seconds) set to one week: |
| 44 | +// Value is in seconds - set to one week |
45 | 45 | $edgCacheExpireTime = 60 * 60 * 24 * 7; |
46 | 46 | |
47 | 47 | $edgDBServer = array(); |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | return true; // always return true, in order not to stop MW's hook processing! |
66 | 66 | } |
67 | 67 | |
68 | | -// Pre 1.16alpha backward compatibility for magic words |
| 68 | +// Pre-1.16alpha backward compatibility for magic words |
69 | 69 | function edgLanguageGetMagic( &$magicWords, $langCode = "en" ) { |
70 | 70 | switch ( $langCode ) { |
71 | 71 | default: |
Index: trunk/extensions/ExternalData/README |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | External Data extension |
3 | 3 | |
4 | | - Version 1.2.3 |
| 4 | + Version 1.3 |
5 | 5 | Yaron Koren, Michael Dale and David Macdonald |
6 | 6 | |
7 | 7 | This is free software licensed under the GNU General Public License. Please |
— | — | @@ -15,7 +15,8 @@ |
16 | 16 | |
17 | 17 | The extension defines seven parser functions - #get_web_data, |
18 | 18 | #get_external_data, #get_db_data, #get_ldap_data, #external_value, |
19 | | -#for_external_table and #store_external_table. They are described below: |
| 19 | +#for_external_table, #store_external_table and #clear_external_data. |
| 20 | +They are described below: |
20 | 21 | |
21 | 22 | * #get_web_data retrieves the data from a URL that holds CSV, GFF, |
22 | 23 | JSON or XML, and assigns it to local variables or arrays. |
— | — | @@ -40,6 +41,8 @@ |
41 | 42 | any of the #get_*_data functions, in order to store the entire array |
42 | 43 | of data semantically. |
43 | 44 | |
| 45 | +* #clear_external_data erases the current set of retrieved data. |
| 46 | + |
44 | 47 | In addition, the extension defines a new special page, 'GetData', that |
45 | 48 | exports selected rows from a wiki page that holds CSV data, in a format |
46 | 49 | that is readable by #get_web_data. |