Öffentliche Methoden | |
| __construct ($output_precision=4, $internal_precision=10, $force_no_bcmath=false) | |
| convert ($length, $to_unit) | |
| getSigFigs ($n) | |
Datenfelder | |
| const | ENGLISH = 1 |
| const | METRIC = 2 |
| const | DIGITAL = 3 |
Geschützte Attribute | |
| $outputPrecision | |
| $internalPrecision | |
Statische geschützte Attribute | |
| static | $units |
Definiert in Zeile 7 der Datei UnitConverter.php.
| __construct | ( | $ | output_precision = 4, |
|
| $ | internal_precision = 10, |
|||
| $ | force_no_bcmath = false | |||
| ) |
Definiert in Zeile 53 der Datei UnitConverter.php.
| convert | ( | $ | length, | |
| $ | to_unit | |||
| ) |
Converts a length object of one unit into another unit.
| HTMLPurifier_Length | $length Instance of HTMLPurifier_Length to convert. You must validate() it before passing it here! | |
| string | $to_unit Unit to convert to. |
Definiert in Zeile 77 der Datei UnitConverter.php.

| getSigFigs | ( | $ | n | ) |
Returns the number of significant figures in a string number.
| string | $n Decimal number |
Definiert in Zeile 173 der Datei UnitConverter.php.

$internalPrecision [protected] |
Bcmath precision for internal calculations.
Definiert in Zeile 46 der Datei UnitConverter.php.
$outputPrecision [protected] |
Minimum bcmath precision for output.
Definiert in Zeile 41 der Datei UnitConverter.php.
$units [static, protected] |
Initialisierung:
array(
self::ENGLISH => array(
'px' => 3,
'pt' => 4,
'pc' => 48,
'in' => 288,
self::METRIC => array('pt', '0.352777778', 'mm'),
),
self::METRIC => array(
'mm' => 1,
'cm' => 10,
self::ENGLISH => array('mm', '2.83464567', 'pt'),
),
)
Definiert in Zeile 23 der Datei UnitConverter.php.
| const DIGITAL = 3 |
Definiert in Zeile 12 der Datei UnitConverter.php.
| const ENGLISH = 1 |
Definiert in Zeile 10 der Datei UnitConverter.php.
| const METRIC = 2 |
Definiert in Zeile 11 der Datei UnitConverter.php.
| Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|