Class Zend_Measure_Volume

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

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Volume
Class Constant Summary
 ACRE_FOOT = 'ACRE_FOOT'
 ACRE_FOOT_SURVEY = 'ACRE_FOOT_SURVEY'
 ACRE_INCH = 'ACRE_INCH'
 BARREL = 'BARREL'
 BARREL_US = 'BARREL_US'
 BARREL_US_DRY = 'BARREL_US_DRY'
 BARREL_US_FEDERAL = 'BARREL_US_FEDERAL'
 BARREL_US_PETROLEUM = 'BARREL_US_PETROLEUM'
 BARREL_WINE = 'BARREL_WINE'
 BOARD_FOOT = 'BOARD_FOOT'
 BUCKET = 'BUCKET'
 BUCKET_US = 'BUCKET_US'
 BUSHEL = 'BUSHEL'
 BUSHEL_US = 'BUSHEL_US'
 CENTILTER = 'CENTILITER'
 CORD = 'CORD'
 CORD_FOOT = 'CORD_FOOT'
 CUBIC_CENTIMETER = 'CUBIC_CENTIMETER'
 CUBIC_CUBIT = 'CUBIC_CUBIT'
 CUBIC_DECIMETER = 'CUBIC_DECIMETER'
 CUBIC_DEKAMETER = 'CUBIC_DEKAMETER'
 CUBIC_FOOT = 'CUBIC_FOOT'
 CUBIC_INCH = 'CUBIC_INCH'
 CUBIC_KILOMETER = 'CUBIC_KILOMETER'
 CUBIC_METER = 'CUBIC_METER'
 CUBIC_MICROMETER = 'CUBIC_MICROMETER'
 CUBIC_MILE = 'CUBIC_MILE'
 CUBIC_MILLIMETER = 'CUBIC_MILLIMETER'
 CUBIC_YARD = 'CUBIC_YARD'
 CUP = 'CUP'
 CUP_CANADA = 'CUP_CANADA'
 CUP_US = 'CUP_US'
 DECILITER = 'DECILITER'
 DEKALITER = 'DEKALITER'
 DRAM = 'DRAM'
 DRUM = 'DRUM'
 DRUM_US = 'DRUM_US'
 FIFTH = 'FIFTH'
 GALLON = 'GALLON'
 GALLON_US = 'GALLON_US'
 GALLON_US_DRY = 'GALLON_US_DRY'
 GILL = 'GILL'
 GILL_US = 'GILL_US'
 HECTARE_METER = 'HECTARE_METER'
 HECTOLITER = 'HECTOLITER'
 HOGSHEAD = 'HOGSHEAD'
 HOGSHEAD_US = 'HOGSHEAD_US'
 JIGGER = 'JIGGER'
 KILOLITER = 'KILOLITER'
 LITER = 'LITER'
 MEASURE = 'MEASURE'
 MEGALITER = 'MEGALITER'
 MICROLITER = 'MICROLITER'
 MILLILITER = 'MILLILITER'
 MINIM = 'MINIM'
 MINIM_US = 'MINIM_US'
 OUNCE = 'OUNCE'
 OUNCE_US = 'OUNCE_US'
 PECK = 'PECK'
 PECK_US = 'PECK_US'
 PINT = 'PINT'
 PINT_US = 'PINT_US'
 PINT_US_DRY = 'PINT_US_DRY'
 PIPE = 'PIPE'
 PIPE_US = 'PIPE_US'
 PONY = 'PONY'
 QUART = 'QUART'
 QUART_ANCIENT = 'QUART_ANCIENT'
 QUART_GERMANY = 'QUART_GERMANY'
 QUART_UK = 'QUART_UK'
 QUART_US = 'QUART_US'
 QUART_US_DRY = 'QUART_US_DRY'
 SHOT = 'SHOT'
 STANDARD = 'CUBIC_METER'
 STERE = 'STERE'
 TABLESPOON = 'TABLESPOON'
 TABLESPOON_UK = 'TABLESPOON_UK'
 TABLESPOON_US = 'TABLESPOON_US'
 TEASPOON = 'TEASPOON'
 TEASPOON_UK = 'TEASPOON_UK'
 TEASPOON_US = 'TEASPOON_US'
 YARD = 'YARD'
Method Summary
 boolean equals (Zend_Measure_Volume $object)
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 Zend_Measure_Volume __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 236)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Volume $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

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

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

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

Redefinition of:
Zend_Measure_Abstract::setValue()
Sets the internal value
Constructor __construct (line 224)

Zend_Measure_Volume provides an locale aware class for conversion and formatting of volume 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_Volume __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_Volume Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
toString (line 337)

Returns a string representation

  • access: public
string toString ()

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

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
ACRE_FOOT = 'ACRE_FOOT' (line 43)
ACRE_FOOT_SURVEY = 'ACRE_FOOT_SURVEY' (line 44)
ACRE_INCH = 'ACRE_INCH' (line 45)
BARREL = 'BARREL' (line 47)
BARREL_US = 'BARREL_US' (line 50)
BARREL_US_DRY = 'BARREL_US_DRY' (line 48)
BARREL_US_FEDERAL = 'BARREL_US_FEDERAL' (line 49)
BARREL_US_PETROLEUM = 'BARREL_US_PETROLEUM' (line 51)
BARREL_WINE = 'BARREL_WINE' (line 46)
BOARD_FOOT = 'BOARD_FOOT' (line 52)
BUCKET = 'BUCKET' (line 53)
BUCKET_US = 'BUCKET_US' (line 54)
BUSHEL = 'BUSHEL' (line 55)
BUSHEL_US = 'BUSHEL_US' (line 56)
CENTILTER = 'CENTILITER' (line 57)
CORD = 'CORD' (line 58)
CORD_FOOT = 'CORD_FOOT' (line 59)
CUBIC_CENTIMETER = 'CUBIC_CENTIMETER' (line 60)
CUBIC_CUBIT = 'CUBIC_CUBIT' (line 61)
CUBIC_DECIMETER = 'CUBIC_DECIMETER' (line 62)
CUBIC_DEKAMETER = 'CUBIC_DEKAMETER' (line 63)
CUBIC_FOOT = 'CUBIC_FOOT' (line 64)
CUBIC_INCH = 'CUBIC_INCH' (line 65)
CUBIC_KILOMETER = 'CUBIC_KILOMETER' (line 66)
CUBIC_METER = 'CUBIC_METER' (line 67)
CUBIC_MICROMETER = 'CUBIC_MICROMETER' (line 69)
CUBIC_MILE = 'CUBIC_MILE' (line 68)
CUBIC_MILLIMETER = 'CUBIC_MILLIMETER' (line 70)
CUBIC_YARD = 'CUBIC_YARD' (line 71)
CUP = 'CUP' (line 73)
CUP_CANADA = 'CUP_CANADA' (line 72)
CUP_US = 'CUP_US' (line 74)
DECILITER = 'DECILITER' (line 75)
DEKALITER = 'DEKALITER' (line 76)
DRAM = 'DRAM' (line 77)
DRUM = 'DRUM' (line 79)
DRUM_US = 'DRUM_US' (line 78)
FIFTH = 'FIFTH' (line 80)
GALLON = 'GALLON' (line 81)
GALLON_US = 'GALLON_US' (line 83)
GALLON_US_DRY = 'GALLON_US_DRY' (line 82)
GILL = 'GILL' (line 84)
GILL_US = 'GILL_US' (line 85)
HECTARE_METER = 'HECTARE_METER' (line 86)
HECTOLITER = 'HECTOLITER' (line 87)
HOGSHEAD = 'HOGSHEAD' (line 88)
HOGSHEAD_US = 'HOGSHEAD_US' (line 89)
JIGGER = 'JIGGER' (line 90)
KILOLITER = 'KILOLITER' (line 91)
LITER = 'LITER' (line 92)
MEASURE = 'MEASURE' (line 93)
MEGALITER = 'MEGALITER' (line 94)
MICROLITER = 'MICROLITER' (line 95)
MILLILITER = 'MILLILITER' (line 96)
MINIM = 'MINIM' (line 97)
MINIM_US = 'MINIM_US' (line 98)
OUNCE = 'OUNCE' (line 99)
OUNCE_US = 'OUNCE_US' (line 100)
PECK = 'PECK' (line 101)
PECK_US = 'PECK_US' (line 102)
PINT = 'PINT' (line 103)
PINT_US = 'PINT_US' (line 105)
PINT_US_DRY = 'PINT_US_DRY' (line 104)
PIPE = 'PIPE' (line 106)
PIPE_US = 'PIPE_US' (line 107)
PONY = 'PONY' (line 108)
QUART = 'QUART' (line 111)
QUART_ANCIENT = 'QUART_ANCIENT' (line 110)
QUART_GERMANY = 'QUART_GERMANY' (line 109)
QUART_UK = 'QUART_UK' (line 114)
QUART_US = 'QUART_US' (line 113)
QUART_US_DRY = 'QUART_US_DRY' (line 112)
SHOT = 'SHOT' (line 115)
STANDARD = 'CUBIC_METER' (line 41)
STERE = 'STERE' (line 116)
TABLESPOON = 'TABLESPOON' (line 117)
TABLESPOON_UK = 'TABLESPOON_UK' (line 118)
TABLESPOON_US = 'TABLESPOON_US' (line 119)
TEASPOON = 'TEASPOON' (line 120)
TEASPOON_UK = 'TEASPOON_UK' (line 121)
TEASPOON_US = 'TEASPOON_US' (line 122)
YARD = 'YARD' (line 123)

Documentation generated on Thu, 18 Jan 2007 10:00:10 -0800 by phpDocumentor 1.3.1