Index: trunk/extensions/Translate/scripts/groupStatistics.php |
— | — | @@ -176,6 +176,24 @@ |
177 | 177 | $optionsWithArgs = array( 'groups', 'output', 'skiplanguages', 'legenddetail', 'legendsummary' ); |
178 | 178 | require( dirname( __FILE__ ) . '/cli.inc' ); |
179 | 179 | |
| 180 | +/** |
| 181 | + * @todo Needs documentation. |
| 182 | + * @ingroup Stats |
| 183 | + */ |
| 184 | +class TranslateStatsOutput extends wikiStatsOutput { |
| 185 | + function heading() { |
| 186 | + echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"' . "\n"; |
| 187 | + } |
| 188 | + |
| 189 | + function summaryheading() { |
| 190 | + echo "\n" . '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;"' . "\n"; |
| 191 | + } |
| 192 | + |
| 193 | + function addFreeText( $freeText ) { |
| 194 | + echo $freeText; |
| 195 | + } |
| 196 | +} |
| 197 | + |
180 | 198 | if ( isset( $options['help'] ) ) { |
181 | 199 | showUsage(); |
182 | 200 | } |
— | — | @@ -647,21 +665,3 @@ |
648 | 666 | STDERR( $msg ); |
649 | 667 | exit( 1 ); |
650 | 668 | } |
651 | | - |
652 | | -/** |
653 | | - * @todo Needs documentation. |
654 | | - * @ingroup Stats |
655 | | - */ |
656 | | -class TranslateStatsOutput extends wikiStatsOutput { |
657 | | - function heading() { |
658 | | - echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"' . "\n"; |
659 | | - } |
660 | | - |
661 | | - function summaryheading() { |
662 | | - echo "\n" . '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;"' . "\n"; |
663 | | - } |
664 | | - |
665 | | - function addFreeText( $freeText ) { |
666 | | - echo $freeText; |
667 | | - } |
668 | | -} |