Class Zend_Measure_Viscosity_Dynamic

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

Located in /Zend/Measure/Viscosity/Dynamic.php (line 38)

Zend_Measure_Abstract
   |
   --Zend_Measure_Viscosity_Dynamic
Class Constant Summary
 CENTIPOISE = 'CENTIPOISE'
 DECIPOISE = 'DECIPOISE'
 DYNE_SECOND_PER_SQUARE_CENTIMETER = 'DYNE_SECOND_PER_SQUARE_CENTIMETER'
 GLYCERIN_20C = 'GLYCERIN_20C'
 GLYCERIN_40C = 'GLYCERIN_40C'
 GRAM_FORCE_SECOND_PER_SQUARE_CENTIMETER = 'GRAM_FORCE_SECOND_PER_SQUARE_CENTIMETER'
 GRAM_PER_CENTIMETER_SECOND = 'GRAM_PER_CENTIMETER_SECOND'
 HEAVY_OIL_20C = 'HEAVY_OIL_20C'
 HEAVY_OIL_40C = 'HEAVY_OIL_40C'
 KILOGRAM_FORCE_SECOND_PER_SQUARE_METER = 'KILOGRAM_FORCE_SECOND_PER_SQUARE_METER'
 KILOGRAM_PER_METER_HOUR = 'KILOGRAM_PER_METER_HOUR'
 KILOGRAM_PER_METER_SECOND = 'KILOGRAM_PER_METER_SECOND'
 LBFS_PER_SQUARE_FOOT = 'LBFS_PER_SQUARE_FOOT'
 MILLIPASCAL_SECOND = 'MILLIPASCAL_SECOND'
 MILLIPOISE = 'MILLIPOISE'
 NEWTON_SECOND_PER_SQUARE_METER = 'NEWTON_SECOND_PER_SQUARE_METER'
 NS_PER_SQUARE_METER = 'NS_PER_SQUARE_METER'
 PASCAL_SECOND = 'PASCAL_SECOND'
 POISE = 'POISE'
 POISEUILLE = 'POISEUILLE'
 POUNDAL_HOUR_PER_SQUARE_FOOT = 'POUNDAL_HOUR_PER_SQUARE_FOOT'
 POUNDAL_SECOND_PER_SQUARE_FOOT = 'POUNDAL_SECOND_PER_SQUARE_FOOT'
 POUND_FORCE_SECOND_PER_SQUARE_FEET = 'POUND_FORCE_SECOND_PER_SQUARE_FEET'
 POUND_FORCE_SECOND_PER_SQUARE_INCH = 'POUND_FORCE_SECOND_PER_SQUARE_INCH'
 POUND_PER_FOOT_HOUR = 'POUND_PER_FOOT_HOUR'
 POUND_PER_FOOT_SECOND = 'POUND_PER_FOOT_SECOND'
 REYN = 'REYN'
 SAE_5W_99C = 'SAE_5W_99C'
 SAE_5W_MINUS18C = 'SAE_5W_MINUS18C'
 SAE_10W_99C = 'SAE_10W_99C'
 SAE_10W_MINUS18C = 'SAE_10W_MINUS18C'
 SAE_20W_99C = 'SAE_20W_99C'
 SAE_20W_MINUS18C = 'SAE_20W_MINUS18C'
 SLUG_PER_FOOT_SECOND = 'SLUG_PER_FOOT_SECOND'
 STANDARD = 'KILOGRAM_PER_METER_SECOND'
 WATER_20C = 'WATER_20C'
 WATER_40C = 'WATER_40C'
Method Summary
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 Zend_Measure_Viscosity_Dynamic __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string __toString ()
Methods
equals (line 145)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Viscosity_Dynamic $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

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

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

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

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

Returns a string representation

  • access: public
string toString ()

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

Zend_Measure_Viscosity_Dynamic provides an locale aware class for conversion and formatting of viscosity-dynamic 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_Viscosity_Dynamic __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_Cooking_Weight Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
__toString (line 257)

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
CENTIPOISE = 'CENTIPOISE' (line 43)
DECIPOISE = 'DECIPOISE' (line 44)
DYNE_SECOND_PER_SQUARE_CENTIMETER = 'DYNE_SECOND_PER_SQUARE_CENTIMETER' (line 45)
GLYCERIN_20C = 'GLYCERIN_20C' (line 71)
GLYCERIN_40C = 'GLYCERIN_40C' (line 72)
GRAM_FORCE_SECOND_PER_SQUARE_CENTIMETER = 'GRAM_FORCE_SECOND_PER_SQUARE_CENTIMETER' (line 46)
GRAM_PER_CENTIMETER_SECOND = 'GRAM_PER_CENTIMETER_SECOND' (line 47)
HEAVY_OIL_20C = 'HEAVY_OIL_20C' (line 69)
HEAVY_OIL_40C = 'HEAVY_OIL_40C' (line 70)
KILOGRAM_FORCE_SECOND_PER_SQUARE_METER = 'KILOGRAM_FORCE_SECOND_PER_SQUARE_METER' (line 48)
KILOGRAM_PER_METER_HOUR = 'KILOGRAM_PER_METER_HOUR' (line 49)
KILOGRAM_PER_METER_SECOND = 'KILOGRAM_PER_METER_SECOND' (line 50)
LBFS_PER_SQUARE_FOOT = 'LBFS_PER_SQUARE_FOOT' (line 65)
MILLIPASCAL_SECOND = 'MILLIPASCAL_SECOND' (line 51)
MILLIPOISE = 'MILLIPOISE' (line 52)
NEWTON_SECOND_PER_SQUARE_METER = 'NEWTON_SECOND_PER_SQUARE_METER' (line 53)
NS_PER_SQUARE_METER = 'NS_PER_SQUARE_METER' (line 66)
PASCAL_SECOND = 'PASCAL_SECOND' (line 54)
POISE = 'POISE' (line 55)
POISEUILLE = 'POISEUILLE' (line 56)
POUNDAL_HOUR_PER_SQUARE_FOOT = 'POUNDAL_HOUR_PER_SQUARE_FOOT' (line 61)
POUNDAL_SECOND_PER_SQUARE_FOOT = 'POUNDAL_SECOND_PER_SQUARE_FOOT' (line 62)
POUND_FORCE_SECOND_PER_SQUARE_FEET = 'POUND_FORCE_SECOND_PER_SQUARE_FEET' (line 57)
POUND_FORCE_SECOND_PER_SQUARE_INCH = 'POUND_FORCE_SECOND_PER_SQUARE_INCH' (line 58)
POUND_PER_FOOT_HOUR = 'POUND_PER_FOOT_HOUR' (line 59)
POUND_PER_FOOT_SECOND = 'POUND_PER_FOOT_SECOND' (line 60)
REYN = 'REYN' (line 63)
SAE_5W_99C = 'SAE_5W_99C' (line 76)
SAE_5W_MINUS18C = 'SAE_5W_MINUS18C' (line 73)
SAE_10W_99C = 'SAE_10W_99C' (line 77)
SAE_10W_MINUS18C = 'SAE_10W_MINUS18C' (line 74)
SAE_20W_99C = 'SAE_20W_99C' (line 78)
SAE_20W_MINUS18C = 'SAE_20W_MINUS18C' (line 75)
SLUG_PER_FOOT_SECOND = 'SLUG_PER_FOOT_SECOND' (line 64)
STANDARD = 'KILOGRAM_PER_METER_SECOND' (line 41)
WATER_20C = 'WATER_20C' (line 67)
WATER_40C = 'WATER_40C' (line 68)

Documentation generated on Thu, 18 Jan 2007 09:53:03 -0800 by phpDocumentor 1.3.1