MediaWiki master
StatsOutput Class Reference

A general output object. More...

Inherited by CsvStatsOutput, TextStatsOutput, and WikiStatsOutput.

Public Member Functions

 blockend ()
 
 blockstart ()
 
 element ( $in, $heading=false)
 
 footer ()
 
 formatPercent ( $subset, $total, $revert=false, $accuracy=2)
 
 heading ()
 

Detailed Description

A general output object.

Need to be overridden

Definition at line 17 of file StatOutputs.php.

Member Function Documentation

◆ blockend()

StatsOutput::blockend ( )

Reimplemented in WikiStatsOutput, TextStatsOutput, and CsvStatsOutput.

Definition at line 41 of file StatOutputs.php.

◆ blockstart()

StatsOutput::blockstart ( )

Reimplemented in WikiStatsOutput.

Definition at line 38 of file StatOutputs.php.

◆ element()

StatsOutput::element ( $in,
$heading = false )
Parameters
string | float | int$in
bool$heading

Reimplemented in WikiStatsOutput, TextStatsOutput, and CsvStatsOutput.

Definition at line 48 of file StatOutputs.php.

◆ footer()

StatsOutput::footer ( )

Reimplemented in WikiStatsOutput.

Definition at line 35 of file StatOutputs.php.

◆ formatPercent()

StatsOutput::formatPercent ( $subset,
$total,
$revert = false,
$accuracy = 2 )
Parameters
int | float$subset
int | float$total
bool$revert
int | float$accuracy
Returns
string

Reimplemented in WikiStatsOutput.

Definition at line 25 of file StatOutputs.php.

◆ heading()

StatsOutput::heading ( )

Reimplemented in WikiStatsOutput.

Definition at line 32 of file StatOutputs.php.


The documentation for this class was generated from the following file: