Zend Framework  1.12
Public Attributes | Protected Attributes | List of all members
Zend_Measure_Temperature Class Reference

Public Attributes

const STANDARD = 'KELVIN'
 
const CELSIUS = 'CELSIUS'
 
const FAHRENHEIT = 'FAHRENHEIT'
 
const RANKINE = 'RANKINE'
 
const REAUMUR = 'REAUMUR'
 
const KELVIN = 'KELVIN'
 

Protected Attributes

 $_units
 
- Protected Attributes inherited from Zend_Measure_Abstract
 $_value
 Plain value in standard unit.
 
 $_type
 Original type for this unit.
 
 $_locale = null
 Locale identifier.
 
 $_units = array()
 Unit types for this measurement.
 

Additional Inherited Members

- Public Member Functions inherited from Zend_Measure_Abstract
 __construct ($value, $type=null, $locale=null)
 Zend_Measure_Abstract is an abstract class for the different measurement types.
 
 getLocale ()
 Returns the actual set locale.
 
 setLocale ($locale=null, $check=false)
 Sets a new locale for the value representation.
 
 getValue ($round=-1, $locale=null)
 Returns the internal value.
 
 setValue ($value, $type=null, $locale=null)
 Set a new value.
 
 getType ()
 Returns the original type.
 
 setType ($type)
 Set a new type, and convert the value.
 
 equals ($object)
 Compare if the value and type is equal.
 
 toString ($round=-1, $locale=null)
 Returns a string representation.
 
 __toString ()
 Returns a string representation.
 
 getConversionList ()
 Returns the conversion list.
 
 convertTo ($type, $round=2, $locale=null)
 Alias function for setType returning the converted unit.
 
 add ($object)
 Adds an unit to another one.
 
 sub ($object)
 Substracts an unit from another one.
 
 compare ($object)
 Compares two units.
 

Member Data Documentation

$_units
protected
Initial value:
= array(
'CELSIUS' => array(array('' => '1', '+' => '273.15'),'°C'),
'FAHRENHEIT' => array(array('' => '1', '-' => '32', '/' => '1.8', '+' => '273.15'),'°F'),
'RANKINE' => array(array('' => '1', '/' => '1.8'),'°R'),
'REAUMUR' => array(array('' => '1', '*' => '1.25', '+' => '273.15'),'°r'),
'KELVIN' => array(1,'°K'),
'STANDARD' => 'KELVIN'
)
const CELSIUS = 'CELSIUS'
const FAHRENHEIT = 'FAHRENHEIT'
const KELVIN = 'KELVIN'
const RANKINE = 'RANKINE'
const REAUMUR = 'REAUMUR'
const STANDARD = 'KELVIN'