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

Public Attributes

const STANDARD = 'METER_PER_SQUARE_SECOND'
 
const CENTIGAL = 'CENTIGAL'
 
const CENTIMETER_PER_SQUARE_SECOND = 'CENTIMETER_PER_SQUARE_SECOND'
 
const DECIGAL = 'DECIGAL'
 
const DECIMETER_PER_SQUARE_SECOND = 'DECIMETER_PER_SQUARE_SECOND'
 
const DEKAMETER_PER_SQUARE_SECOND = 'DEKAMETER_PER_SQUARE_SECOND'
 
const FOOT_PER_SQUARE_SECOND = 'FOOT_PER_SQUARE_SECOND'
 
const G = 'G'
 
const GAL = 'GAL'
 
const GALILEO = 'GALILEO'
 
const GRAV = 'GRAV'
 
const HECTOMETER_PER_SQUARE_SECOND = 'HECTOMETER_PER_SQUARE_SECOND'
 
const INCH_PER_SQUARE_SECOND = 'INCH_PER_SQUARE_SECOND'
 
const KILOMETER_PER_HOUR_SECOND = 'KILOMETER_PER_HOUR_SECOND'
 
const KILOMETER_PER_SQUARE_SECOND = 'KILOMETER_PER_SQUARE_SECOND'
 
const METER_PER_SQUARE_SECOND = 'METER_PER_SQUARE_SECOND'
 
const MILE_PER_HOUR_MINUTE = 'MILE_PER_HOUR_MINUTE'
 
const MILE_PER_HOUR_SECOND = 'MILE_PER_HOUR_SECOND'
 
const MILE_PER_SQUARE_SECOND = 'MILE_PER_SQUARE_SECOND'
 
const MILLIGAL = 'MILLIGAL'
 
const MILLIMETER_PER_SQUARE_SECOND = 'MILLIMETER_PER_SQUARE_SECOND'
 

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(
'CENTIGAL' => array('0.0001', 'cgal'),
'CENTIMETER_PER_SQUARE_SECOND' => array('0.01', 'cm/s²'),
'DECIGAL' => array('0.001', 'dgal'),
'DECIMETER_PER_SQUARE_SECOND' => array('0.1', 'dm/s²'),
'DEKAMETER_PER_SQUARE_SECOND' => array('10', 'dam/s²'),
'FOOT_PER_SQUARE_SECOND' => array('0.3048', 'ft/s²'),
'G' => array('9.80665', 'g'),
'GAL' => array('0.01', 'gal'),
'GALILEO' => array('0.01', 'gal'),
'GRAV' => array('9.80665', 'g'),
'HECTOMETER_PER_SQUARE_SECOND' => array('100', 'h/s²'),
'INCH_PER_SQUARE_SECOND' => array('0.0254', 'in/s²'),
'KILOMETER_PER_HOUR_SECOND' => array(array('' => '5','/' => '18'), 'km/h²'),
'KILOMETER_PER_SQUARE_SECOND' => array('1000', 'km/s²'),
'METER_PER_SQUARE_SECOND' => array('1', 'm/s²'),
'MILE_PER_HOUR_MINUTE' => array(array('' => '22', '/' => '15', '*' => '0.3048', '/' => '60'), 'mph/m'),
'MILE_PER_HOUR_SECOND' => array(array('' => '22', '/' => '15', '*' => '0.3048'), 'mph/s'),
'MILE_PER_SQUARE_SECOND' => array('1609.344', 'mi/s²'),
'MILLIGAL' => array('0.00001', 'mgal'),
'MILLIMETER_PER_SQUARE_SECOND' => array('0.001', 'mm/s²'),
'STANDARD' => 'METER_PER_SQUARE_SECOND'
)
const CENTIGAL = 'CENTIGAL'
const CENTIMETER_PER_SQUARE_SECOND = 'CENTIMETER_PER_SQUARE_SECOND'
const DECIGAL = 'DECIGAL'
const DECIMETER_PER_SQUARE_SECOND = 'DECIMETER_PER_SQUARE_SECOND'
const DEKAMETER_PER_SQUARE_SECOND = 'DEKAMETER_PER_SQUARE_SECOND'
const FOOT_PER_SQUARE_SECOND = 'FOOT_PER_SQUARE_SECOND'
const G = 'G'
const GAL = 'GAL'
const GALILEO = 'GALILEO'
const GRAV = 'GRAV'
const HECTOMETER_PER_SQUARE_SECOND = 'HECTOMETER_PER_SQUARE_SECOND'
const INCH_PER_SQUARE_SECOND = 'INCH_PER_SQUARE_SECOND'
const KILOMETER_PER_HOUR_SECOND = 'KILOMETER_PER_HOUR_SECOND'
const KILOMETER_PER_SQUARE_SECOND = 'KILOMETER_PER_SQUARE_SECOND'
const METER_PER_SQUARE_SECOND = 'METER_PER_SQUARE_SECOND'
const MILE_PER_HOUR_MINUTE = 'MILE_PER_HOUR_MINUTE'
const MILE_PER_HOUR_SECOND = 'MILE_PER_HOUR_SECOND'
const MILE_PER_SQUARE_SECOND = 'MILE_PER_SQUARE_SECOND'
const MILLIGAL = 'MILLIGAL'
const MILLIMETER_PER_SQUARE_SECOND = 'MILLIMETER_PER_SQUARE_SECOND'
const STANDARD = 'METER_PER_SQUARE_SECOND'