Class Zend_Measure_Cooking_Volume

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

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Cooking_Volume
Class Constant Summary
 BARREL = 'BARREL'
 BARREL_US = 'BARREL_US'
 BARREL_US_DRY = 'BARREL_US_DRY'
 BARREL_US_FEDERAL = 'BARREL_US_FEDERAL'
 BARREL_WINE = 'BARREL_WINE'
 BUCKET = 'BUCKET'
 BUCKET_US = 'BUCKET_US'
 BUSHEL = 'BUSHEL'
 BUSHEL_US = 'BUSHEL_US'
 CAN_2POINT5 = 'CAN_2POINT5'
 CAN_10 = 'CAN_10'
 CENTILITER = 'CENTILITER'
 COFFEE_SPOON = 'COFFEE_SPOON'
 CUBIC_CENTIMETER = 'CUBIC_CENTIMETER'
 CUBIC_DECIMETER = 'CUBIC_DECIMETER'
 CUBIC_FOOT = 'CUBIC_FOOT'
 CUBIC_INCH = 'CUBIC_INCH'
 CUBIC_METER = 'CUBIC_METER'
 CUBIC_MICROMETER = 'CUBIC_MICROMETER'
 CUBIC_MILLIMETER = 'CUBIC_MILLIMETER'
 CUP = 'CUP'
 CUP_CANADA = 'CUP_CANADA'
 CUP_US = 'CUP_US'
 DASH = 'DASH'
 DECILITER = 'DECILITER'
 DEKALITER = 'DEKALITER'
 DEMI = 'DEMI'
 DRAM = 'DRAM'
 DROP = 'DROP'
 FIFTH = 'FIFTH'
 GALLON = 'GALLON'
 GALLON_US = 'GALLON_US'
 GALLON_US_DRY = 'GALLON_US_DRY'
 GILL = 'GILL'
 GILL_US = 'GILL_US'
 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'
 PINCH = 'PINCH'
 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_US = 'QUART_US'
 QUART_US_DRY = 'QUART_US_DRY'
 SHOT = 'SHOT'
 STANDARD = 'CUBIC_METER'
 TABLESPOON = 'TABLESPOON'
 TABLESPOON_UK = 'TABLESPOON_UK'
 TABLESPOON_US = 'TABLESPOON_US'
 TEASPOON = 'TEASPOON'
 TEASPOON_UK = 'TEASPOON_UK'
 TEASPOON_US = 'TEASPOON_US'
Method Summary
 boolean equals (Zend_Measure_Cooking_Volume $object)
 void setType ( $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 Zend_Measure_Cooking_Volume __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 214)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Cooking_Volume $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

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

Set a new type, and convert the value

  • access: public
  • throws: Zend_Measure_Exception
void setType ( $type)
  • $type

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

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

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

Zend_Measure_Cooking_Volume provides an locale aware class for conversion and formatting of Cooking_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_Cooking_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_Cooking_Volume Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
toString (line 311)

Returns a string representation

  • access: public
string toString ()

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

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

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