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

Public Attributes

const STANDARD = 'NEWTON_METER'
 
const DYNE_CENTIMETER = 'DYNE_CENTIMETER'
 
const GRAM_CENTIMETER = 'GRAM_CENTIMETER'
 
const KILOGRAM_CENTIMETER = 'KILOGRAM_CENTIMETER'
 
const KILOGRAM_METER = 'KILOGRAM_METER'
 
const KILONEWTON_METER = 'KILONEWTON_METER'
 
const KILOPOND_METER = 'KILOPOND_METER'
 
const MEGANEWTON_METER = 'MEGANEWTON_METER'
 
const MICRONEWTON_METER = 'MICRONEWTON_METER'
 
const MILLINEWTON_METER = 'MILLINEWTON_METER'
 
const NEWTON_CENTIMETER = 'NEWTON_CENTIMETER'
 
const NEWTON_METER = 'NEWTON_METER'
 
const OUNCE_FOOT = 'OUNCE_FOOT'
 
const OUNCE_INCH = 'OUNCE_INCH'
 
const POUND_FOOT = 'POUND_FOOT'
 
const POUNDAL_FOOT = 'POUNDAL_FOOT'
 
const POUND_INCH = 'POUND_INCH'
 

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(
'DYNE_CENTIMETER' => array('0.0000001', 'dyncm'),
'GRAM_CENTIMETER' => array('0.0000980665', 'gcm'),
'KILOGRAM_CENTIMETER' => array('0.0980665', 'kgcm'),
'KILOGRAM_METER' => array('9.80665', 'kgm'),
'KILONEWTON_METER' => array('1000', 'kNm'),
'KILOPOND_METER' => array('9.80665', 'kpm'),
'MEGANEWTON_METER' => array('1000000', 'MNm'),
'MICRONEWTON_METER' => array('0.000001', 'µNm'),
'MILLINEWTON_METER' => array('0.001', 'mNm'),
'NEWTON_CENTIMETER' => array('0.01', 'Ncm'),
'NEWTON_METER' => array('1', 'Nm'),
'OUNCE_FOOT' => array('0.084738622', 'ozft'),
'OUNCE_INCH' => array(array('' => '0.084738622', '/' => '12'), 'ozin'),
'POUND_FOOT' => array(array('' => '0.084738622', '*' => '16'), 'lbft'),
'POUNDAL_FOOT' => array('0.0421401099752144', 'plft'),
'POUND_INCH' => array(array('' => '0.084738622', '/' => '12', '*' => '16'), 'lbin'),
'STANDARD' => 'NEWTON_METER'
)
const DYNE_CENTIMETER = 'DYNE_CENTIMETER'
const GRAM_CENTIMETER = 'GRAM_CENTIMETER'
const KILOGRAM_CENTIMETER = 'KILOGRAM_CENTIMETER'
const KILOGRAM_METER = 'KILOGRAM_METER'
const KILONEWTON_METER = 'KILONEWTON_METER'
const KILOPOND_METER = 'KILOPOND_METER'
const MEGANEWTON_METER = 'MEGANEWTON_METER'
const MICRONEWTON_METER = 'MICRONEWTON_METER'
const MILLINEWTON_METER = 'MILLINEWTON_METER'
const NEWTON_CENTIMETER = 'NEWTON_CENTIMETER'
const NEWTON_METER = 'NEWTON_METER'
const OUNCE_FOOT = 'OUNCE_FOOT'
const OUNCE_INCH = 'OUNCE_INCH'
const POUND_FOOT = 'POUND_FOOT'
const POUND_INCH = 'POUND_INCH'
const POUNDAL_FOOT = 'POUNDAL_FOOT'
const STANDARD = 'NEWTON_METER'