Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Temperature.php
Go to the documentation of this file.
1 <?php
25 #require_once 'Zend/Measure/Abstract.php';
26 #require_once 'Zend/Locale.php';
27 
38 {
39  const STANDARD = 'KELVIN';
40 
41  const CELSIUS = 'CELSIUS';
42  const FAHRENHEIT = 'FAHRENHEIT';
43  const RANKINE = 'RANKINE';
44  const REAUMUR = 'REAUMUR';
45  const KELVIN = 'KELVIN';
46 
52  protected $_units = array(
53  'CELSIUS' => array(array('' => '1', '+' => '273.15'),'°C'),
54  'FAHRENHEIT' => array(array('' => '1', '-' => '32', '/' => '1.8', '+' => '273.15'),'°F'),
55  'RANKINE' => array(array('' => '1', '/' => '1.8'),'°R'),
56  'REAUMUR' => array(array('' => '1', '*' => '1.25', '+' => '273.15'),'°r'),
57  'KELVIN' => array(1,'°K'),
58  'STANDARD' => 'KELVIN'
59  );
60 }