* (bug 13490) Show upload/file size limit on upload form
[mediawiki.git] / maintenance / language / function-list.php
blob67bcab03e19ca169a7a5f2ffd57efac7b9fe8e66
1 <?php
3 define( 'MEDIAWIKI', 1 );
4 define( 'NOT_REALLY_MEDIAWIKI', 1 );
6 class Language {}
7 foreach ( glob( 'Language*.php' ) as $file ) {
8 if ( $file != 'Language.php' ) {
9 require_once( $file );
13 $removedFunctions = array( 'date', 'time', 'timeanddate', 'formatMonth', 'formatDay',
14 'getMonthName', 'getMonthNameGen', 'getMonthAbbreviation', 'getWeekdayName',
15 'userAdjust', 'dateFormat', 'timeSeparator', 'timeDateSeparator', 'timeBeforeDate',
16 'monthByLatinNumber', 'getSpecialMonthName',
18 'commafy'
21 $numRemoved = 0;
22 $total = 0;
23 $classes = get_declared_classes();
24 ksort( $classes );
25 foreach ( $classes as $class ) {
26 if ( !preg_match( '/^Language/', $class ) || $class == 'Language' || $class == 'LanguageConverter' ) {
27 continue;
30 print "$class\n";
31 $methods = get_class_methods( $class );
32 print_r( $methods );
34 if ( !count( array_diff( $methods, $removedFunctions ) ) ) {
35 print "removed\n";
36 $numRemoved++;
38 $total++;
39 print "\n";
42 print "$numRemoved will be removed out of $total\n";