Class Zend_Measure_Force

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

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Force
Class Constant Summary
 ATTONEWTON = 'ATTONEWTON'
 CENTINEWTON = 'CENTINEWTON'
 DECIGRAM_FORCE = 'DECIGRAM_FORCE'
 DECINEWTON = 'DECINEWTON'
 DEKAGRAM_FORCE = 'DEKAGRAM_FORCE'
 DEKANEWTON = 'DEKANEWTON'
 DYNE = 'DYNE'
 EXANEWTON = 'EXANEWTON'
 FEMTONEWTON = 'FEMTONEWTON'
 GIGANEWTON = 'GIGANEWTON'
 GRAM_FORCE = 'GRAM_FORCE'
 HECTONEWTON = 'HECTONEWTON'
 JOULE_PER_METER = 'JOULE_PER_METER'
 KILOGRAM_FORCE = 'KILOGRAM_FORCE'
 KILONEWTON = 'KILONEWTON'
 KILOPOND = 'KILOPOND'
 KIP = 'KIP'
 MEGANEWTON = 'MEGANEWTON'
 MEGAPOND = 'MEGAPOND'
 MICRONEWTON = 'MICRONEWTON'
 MILLINEWTON = 'MILLINEWTON'
 NANONEWTON = 'NANONEWTON'
 NEWTON = 'NEWTON'
 OUNCE_FORCE = 'OUNCE_FORCE'
 PETANEWTON = 'PETANEWTON'
 PICONEWTON = 'PICONEWTON'
 POND = 'POND'
 POUNDAL = 'POUNDAL'
 POUND_FORCE = 'POUND_FORCE'
 STANDARD = 'NEWTON'
 STHENE = 'STHENE'
 TERANEWTON = 'TERANEWTON'
 TON_FORCE = 'TON_FORCE'
 TON_FORCE_LONG = 'TON_FORCE_LONG'
 TON_FORCE_SHORT = 'TON_FORCE_SHORT'
 YOCTONEWTON = 'YOCTONEWTON'
 YOTTANEWTON = 'YOTTANEWTON'
 ZEPTONEWTON = 'ZEPTONEWTON'
 ZETTANEWTON = 'ZETTANEWTON'
Method Summary
 boolean equals (Zend_Measure_Force $object)
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 Zend_Measure_Force __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string __toString ()
Methods
equals (line 150)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Force $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

Redefinition of:
Zend_Measure_Abstract::getConversionList()
Returns the conversion list
setType (line 203)

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 168)

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_Force Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers

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

Returns a string representation

  • access: public
string toString ()

Redefinition of:
Zend_Measure_Abstract::toString()
Returns a string representation
Constructor __construct (line 138)

Zend_Measure_Force provides an locale aware class for conversion and formatting of force 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_Force __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_Force Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
__toString (line 236)

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
ATTONEWTON = 'ATTONEWTON' (line 43)
CENTINEWTON = 'CENTINEWTON' (line 44)
DECIGRAM_FORCE = 'DECIGRAM_FORCE' (line 45)
DECINEWTON = 'DECINEWTON' (line 46)
DEKAGRAM_FORCE = 'DEKAGRAM_FORCE' (line 47)
DEKANEWTON = 'DEKANEWTON' (line 48)
DYNE = 'DYNE' (line 49)
EXANEWTON = 'EXANEWTON' (line 50)
FEMTONEWTON = 'FEMTONEWTON' (line 51)
GIGANEWTON = 'GIGANEWTON' (line 52)
GRAM_FORCE = 'GRAM_FORCE' (line 53)
HECTONEWTON = 'HECTONEWTON' (line 54)
JOULE_PER_METER = 'JOULE_PER_METER' (line 55)
KILOGRAM_FORCE = 'KILOGRAM_FORCE' (line 56)
KILONEWTON = 'KILONEWTON' (line 57)
KILOPOND = 'KILOPOND' (line 58)
KIP = 'KIP' (line 59)
MEGANEWTON = 'MEGANEWTON' (line 60)
MEGAPOND = 'MEGAPOND' (line 61)
MICRONEWTON = 'MICRONEWTON' (line 62)
MILLINEWTON = 'MILLINEWTON' (line 63)
NANONEWTON = 'NANONEWTON' (line 64)
NEWTON = 'NEWTON' (line 65)
OUNCE_FORCE = 'OUNCE_FORCE' (line 66)
PETANEWTON = 'PETANEWTON' (line 67)
PICONEWTON = 'PICONEWTON' (line 68)
POND = 'POND' (line 69)
POUNDAL = 'POUNDAL' (line 71)
POUND_FORCE = 'POUND_FORCE' (line 70)
STANDARD = 'NEWTON' (line 41)
STHENE = 'STHENE' (line 72)
TERANEWTON = 'TERANEWTON' (line 73)
TON_FORCE = 'TON_FORCE' (line 75)
TON_FORCE_LONG = 'TON_FORCE_LONG' (line 74)
TON_FORCE_SHORT = 'TON_FORCE_SHORT' (line 76)
YOCTONEWTON = 'YOCTONEWTON' (line 77)
YOTTANEWTON = 'YOTTANEWTON' (line 78)
ZEPTONEWTON = 'ZEPTONEWTON' (line 79)
ZETTANEWTON = 'ZETTANEWTON' (line 80)

Documentation generated on Thu, 18 Jan 2007 09:54:05 -0800 by phpDocumentor 1.3.1