Public Member Functions | |
FormatExif ($exif) | |
Constructor. | |
getFormattedData () | |
Numbers given by Exif user agents are often magical, that is they should be replaced by a detailed explanation depending on their value which most of the time are plain integers. | |
msg ($tag, $val, $arg=null) | |
Convenience function for getFormattedData(). | |
formatNum ($num) | |
Format a number, convert numbers from fractions into floating point numbers. | |
formatFraction ($num) | |
Format a rational number, reducing fractions. | |
gcd ($a, $b) | |
Calculate the greatest common divisor of two integers. | |
Public Attributes | |
$mExif |
Definition at line 606 of file Exif.php.
FormatExif::FormatExif | ( | $ | exif | ) |
Constructor.
$exif | Array: the Exif data to format ( as returned by Exif::getFilteredData() ) |
FormatExif::formatFraction | ( | $ | num | ) |
Format a rational number, reducing fractions.
$num | Mixed: the value to format |
Definition at line 1098 of file Exif.php.
References formatNum(), and gcd().
Referenced by getFormattedData().
FormatExif::formatNum | ( | $ | num | ) |
Format a number, convert numbers from fractions into floating point numbers.
$num | Mixed: the value to format |
Definition at line 1082 of file Exif.php.
Referenced by formatFraction(), and getFormattedData().
FormatExif::gcd | ( | $ | a, | |
$ | b | |||
) |
Calculate the greatest common divisor of two integers.
$a | Integer: FIXME | |
$b | Integer: FIXME |
Definition at line 1120 of file Exif.php.
Referenced by formatFraction().
FormatExif::getFormattedData | ( | ) |
Numbers given by Exif user agents are often magical, that is they should be replaced by a detailed explanation depending on their value which most of the time are plain integers.
This function formats Exif values into human readable form.
Definition at line 633 of file Exif.php.
References $wgLang, formatFraction(), formatNum(), msg(), wfMsg(), and wfTimestamp().
FormatExif::msg | ( | $ | tag, | |
$ | val, | |||
$ | arg = null | |||
) |
Convenience function for getFormattedData().
$tag | String: the tag name to pass on | |
$val | String: the value of the tag | |
$arg | String: an argument to pass ($1) |
Definition at line 1065 of file Exif.php.
References $wgContLang, and wfMsg().
Referenced by getFormattedData().