Class Zend_Measure_Torque

Description
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Measure/Torque.php (line 38)

Zend_Measure_Abstract
   |
   --Zend_Measure_Torque
Class Constant Summary
 DYNE_CENTIMETER = 'DYNE_CENTIMETER'
 GRAM_CENTIMETER = 'GRAM_CENTIMETER'
 KILOGRAM_CENTIMETER = 'KILOGRAM_CENTIMETER'
 KILOGRAM_METER = 'KILOGRAM_METER'
 KILONEWTON_METER = 'KILONEWTON_METER'
 KILOPOND_METER = 'KILOPOND_METER'
 MEGANEWTON_METER = 'MEGANEWTON_METER'
 MICRONEWTON_METER = 'MICRONEWTON_METER'
 MILLINEWTON_METER = 'MILLINEWTON_METER'
 NEWTON_CENTIMETER = 'NEWTON_CENTIMETER'
 NEWTON_METER = 'NEWTON_METER'
 OUNCE_FOOT = 'OUNCE_FOOT'
 OUNCE_INCH = 'OUNCE_INCH'
 POUNDAL_FOOT = 'POUNDAL_FOOT'
 POUND_FOOT = 'POUND_FOOT'
 POUND_INCH = 'POUND_INCH'
 STANDARD = 'NEWTON_METER'
Method Summary
 boolean equals (Zend_Measure_Torque $object)
 Zend_Measure_Torque __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 106)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Torque $object)

Redefinition of:
Zend_Measure_Abstract::equals()
Compare if the value and type is equal
getConversionList (line 230)

Returns the conversion list

  • access: public
array getConversionList ()

Redefinition of:
Zend_Measure_Abstract::getConversionList()
Returns the conversion list
Constructor __construct (line 94)

Zend_Measure_Torque provides an locale aware class for conversion and formatting of Torque values

Zend_Measure $input can be a locale based input string or a value. $locale can be used to define that the input is made in a different language than the actual one.

  • access: public
  • throws: Zend_Measure_Exception
Zend_Measure_Torque __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
  • integer|string $value: Value as string, integer, real or float
  • string $type: OPTIONAL A Zend_Measure_Torque Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
setType (line 159)

Set a new type, and convert the value

  • access: public
  • throws: Zend_Measure_Exception
void setType (string $type)
  • string $type: New type to set

Redefinition of:
Zend_Measure_Abstract::setType()
Sets the original type
setValue (line 124)

Set a new value

  • access: public
  • throws: Zend_Measure_Exception
void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
  • integer|string $value: Value as string, integer, real or float
  • string $type: OPTIONAL A Zend_Measure_Torque Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers

Redefinition of:
Zend_Measure_Abstract::setValue()
Sets the internal value
toString (line 208)

Returns a string representation

  • access: public
string toString ()

Redefinition of:
Zend_Measure_Abstract::toString()
Returns a string representation
__toString (line 219)

Returns a string representation

  • access: public
string __toString ()

Redefinition of:
Zend_Measure_Abstract::__toString()
Returns a string representation

Inherited Methods

Inherited From Zend_Measure_Abstract

 Zend_Measure_Abstract::equals()
 Zend_Measure_Abstract::getConversionList()
 Zend_Measure_Abstract::getType()
 Zend_Measure_Abstract::getValue()
 Zend_Measure_Abstract::serialize()
 Zend_Measure_Abstract::setType()
 Zend_Measure_Abstract::setValue()
 Zend_Measure_Abstract::toString()
 Zend_Measure_Abstract::__toString()
Class Constants
DYNE_CENTIMETER = 'DYNE_CENTIMETER' (line 43)
GRAM_CENTIMETER = 'GRAM_CENTIMETER' (line 44)
KILOGRAM_CENTIMETER = 'KILOGRAM_CENTIMETER' (line 45)
KILOGRAM_METER = 'KILOGRAM_METER' (line 46)
KILONEWTON_METER = 'KILONEWTON_METER' (line 47)
KILOPOND_METER = 'KILOPOND_METER' (line 48)
MEGANEWTON_METER = 'MEGANEWTON_METER' (line 49)
MICRONEWTON_METER = 'MICRONEWTON_METER' (line 50)
MILLINEWTON_METER = 'MILLINEWTON_METER' (line 51)
NEWTON_CENTIMETER = 'NEWTON_CENTIMETER' (line 52)
NEWTON_METER = 'NEWTON_METER' (line 53)
OUNCE_FOOT = 'OUNCE_FOOT' (line 54)
OUNCE_INCH = 'OUNCE_INCH' (line 55)
POUNDAL_FOOT = 'POUNDAL_FOOT' (line 57)
POUND_FOOT = 'POUND_FOOT' (line 56)
POUND_INCH = 'POUND_INCH' (line 58)
STANDARD = 'NEWTON_METER' (line 41)

Documentation generated on Thu, 18 Jan 2007 09:59:57 -0800 by phpDocumentor 1.3.1