* Fixed some doxygen warnings
[mediawiki.git] / maintenance / language / function-list.php
blob7985f37df01bb87c69d426c92e63a46b08fd1ed5
1 <?php
2 /**
3 * @file
4 * @ingroup MaintenanceLanguage
5 */
7 define( 'MEDIAWIKI', 1 );
8 define( 'NOT_REALLY_MEDIAWIKI', 1 );
10 class Language { }
11 foreach ( glob( 'Language*.php' ) as $file ) {
12 if ( $file != 'Language.php' ) {
13 require_once( $file );
17 $removedFunctions = array( 'date', 'time', 'timeanddate', 'formatMonth', 'formatDay',
18 'getMonthName', 'getMonthNameGen', 'getMonthAbbreviation', 'getWeekdayName',
19 'userAdjust', 'dateFormat', 'timeSeparator', 'timeDateSeparator', 'timeBeforeDate',
20 'monthByLatinNumber', 'getSpecialMonthName',
22 'commafy'
25 $numRemoved = 0;
26 $total = 0;
27 $classes = get_declared_classes();
28 ksort( $classes );
29 foreach ( $classes as $class ) {
30 if ( !preg_match( '/^Language/', $class ) || $class == 'Language' || $class == 'LanguageConverter' ) {
31 continue;
34 print "$class\n";
35 $methods = get_class_methods( $class );
36 print_r( $methods );
38 if ( !count( array_diff( $methods, $removedFunctions ) ) ) {
39 print "removed\n";
40 $numRemoved++;
42 $total++;
43 print "\n";
46 print "$numRemoved will be removed out of $total\n";