00001 <?php 00007 define( 'MEDIAWIKI', 1 ); 00008 define( 'NOT_REALLY_MEDIAWIKI', 1 ); 00009 00010 class Language {} 00011 foreach ( glob( 'Language*.php' ) as $file ) { 00012 if ( $file != 'Language.php' ) { 00013 require_once( $file ); 00014 } 00015 } 00016 00017 $removedFunctions = array( 'date', 'time', 'timeanddate', 'formatMonth', 'formatDay', 00018 'getMonthName', 'getMonthNameGen', 'getMonthAbbreviation', 'getWeekdayName', 00019 'userAdjust', 'dateFormat', 'timeSeparator', 'timeDateSeparator', 'timeBeforeDate', 00020 'monthByLatinNumber', 'getSpecialMonthName', 00021 00022 'commafy' 00023 ); 00024 00025 $numRemoved = 0; 00026 $total = 0; 00027 $classes = get_declared_classes(); 00028 ksort( $classes ); 00029 foreach ( $classes as $class ) { 00030 if ( !preg_match( '/^Language/', $class ) || $class == 'Language' || $class == 'LanguageConverter' ) { 00031 continue; 00032 } 00033 00034 print "$class\n"; 00035 $methods = get_class_methods( $class ); 00036 print_r( $methods ); 00037 00038 if ( !count( array_diff( $methods, $removedFunctions ) ) ) { 00039 print "removed\n"; 00040 $numRemoved++; 00041 } 00042 $total++; 00043 print "\n"; 00044 } 00045 00046 print "$numRemoved will be removed out of $total\n"; 00047 00048