Zend Framework
1.12
|
Public Attributes | |
const | STANDARD = 'CUBIC_METER' |
const | CAN_2POINT5 = 'CAN_2POINT5' |
const | CAN_10 = 'CAN_10' |
const | BARREL_WINE = 'BARREL_WINE' |
const | BARREL = 'BARREL' |
const | BARREL_US_DRY = 'BARREL_US_DRY' |
const | BARREL_US_FEDERAL = 'BARREL_US_FEDERAL' |
const | BARREL_US = 'BARREL_US' |
const | BUCKET = 'BUCKET' |
const | BUCKET_US = 'BUCKET_US' |
const | BUSHEL = 'BUSHEL' |
const | BUSHEL_US = 'BUSHEL_US' |
const | CENTILITER = 'CENTILITER' |
const | COFFEE_SPOON = 'COFFEE_SPOON' |
const | CUBIC_CENTIMETER = 'CUBIC_CENTIMETER' |
const | CUBIC_DECIMETER = 'CUBIC_DECIMETER' |
const | CUBIC_FOOT = 'CUBIC_FOOT' |
const | CUBIC_INCH = 'CUBIC_INCH' |
const | CUBIC_METER = 'CUBIC_METER' |
const | CUBIC_MICROMETER = 'CUBIC_MICROMETER' |
const | CUBIC_MILLIMETER = 'CUBIC_MILLIMETER' |
const | CUP_CANADA = 'CUP_CANADA' |
const | CUP = 'CUP' |
const | CUP_US = 'CUP_US' |
const | DASH = 'DASH' |
const | DECILITER = 'DECILITER' |
const | DEKALITER = 'DEKALITER' |
const | DEMI = 'DEMI' |
const | DRAM = 'DRAM' |
const | DROP = 'DROP' |
const | FIFTH = 'FIFTH' |
const | GALLON = 'GALLON' |
const | GALLON_US_DRY = 'GALLON_US_DRY' |
const | GALLON_US = 'GALLON_US' |
const | GILL = 'GILL' |
const | GILL_US = 'GILL_US' |
const | HECTOLITER = 'HECTOLITER' |
const | HOGSHEAD = 'HOGSHEAD' |
const | HOGSHEAD_US = 'HOGSHEAD_US' |
const | JIGGER = 'JIGGER' |
const | KILOLITER = 'KILOLITER' |
const | LITER = 'LITER' |
const | MEASURE = 'MEASURE' |
const | MEGALITER = 'MEGALITER' |
const | MICROLITER = 'MICROLITER' |
const | MILLILITER = 'MILLILITER' |
const | MINIM = 'MINIM' |
const | MINIM_US = 'MINIM_US' |
const | OUNCE = 'OUNCE' |
const | OUNCE_US = 'OUNCE_US' |
const | PECK = 'PECK' |
const | PECK_US = 'PECK_US' |
const | PINCH = 'PINCH' |
const | PINT = 'PINT' |
const | PINT_US_DRY = 'PINT_US_DRY' |
const | PINT_US = 'PINT_US' |
const | PIPE = 'PIPE' |
const | PIPE_US = 'PIPE_US' |
const | PONY = 'PONY' |
const | QUART_GERMANY = 'QUART_GERMANY' |
const | QUART_ANCIENT = 'QUART_ANCIENT' |
const | QUART = 'QUART' |
const | QUART_US_DRY = 'QUART_US_DRY' |
const | QUART_US = 'QUART_US' |
const | SHOT = 'SHOT' |
const | TABLESPOON = 'TABLESPOON' |
const | TABLESPOON_UK = 'TABLESPOON_UK' |
const | TABLESPOON_US = 'TABLESPOON_US' |
const | TEASPOON = 'TEASPOON' |
const | TEASPOON_UK = 'TEASPOON_UK' |
const | TEASPOON_US = 'TEASPOON_US' |
Protected Attributes | |
$_units | |
![]() | |
$_value | |
Plain value in standard unit. | |
$_type | |
Original type for this unit. | |
$_locale = null | |
Locale identifier. | |
$_units = array() | |
Unit types for this measurement. | |
Additional Inherited Members | |
![]() | |
__construct ($value, $type=null, $locale=null) | |
Zend_Measure_Abstract is an abstract class for the different measurement types. | |
getLocale () | |
Returns the actual set locale. | |
setLocale ($locale=null, $check=false) | |
Sets a new locale for the value representation. | |
getValue ($round=-1, $locale=null) | |
Returns the internal value. | |
setValue ($value, $type=null, $locale=null) | |
Set a new value. | |
getType () | |
Returns the original type. | |
setType ($type) | |
Set a new type, and convert the value. | |
equals ($object) | |
Compare if the value and type is equal. | |
toString ($round=-1, $locale=null) | |
Returns a string representation. | |
__toString () | |
Returns a string representation. | |
getConversionList () | |
Returns the conversion list. | |
convertTo ($type, $round=2, $locale=null) | |
Alias function for setType returning the converted unit. | |
add ($object) | |
Adds an unit to another one. | |
sub ($object) | |
Substracts an unit from another one. | |
compare ($object) | |
Compares two units. | |
|
protected |
const BARREL = 'BARREL' |
const BARREL_US = 'BARREL_US' |
const BARREL_US_DRY = 'BARREL_US_DRY' |
const BARREL_US_FEDERAL = 'BARREL_US_FEDERAL' |
const BARREL_WINE = 'BARREL_WINE' |
const BUCKET = 'BUCKET' |
const BUCKET_US = 'BUCKET_US' |
const BUSHEL = 'BUSHEL' |
const BUSHEL_US = 'BUSHEL_US' |
const CAN_10 = 'CAN_10' |
const CAN_2POINT5 = 'CAN_2POINT5' |
const CENTILITER = 'CENTILITER' |
const COFFEE_SPOON = 'COFFEE_SPOON' |
const CUBIC_CENTIMETER = 'CUBIC_CENTIMETER' |
const CUBIC_DECIMETER = 'CUBIC_DECIMETER' |
const CUBIC_FOOT = 'CUBIC_FOOT' |
const CUBIC_INCH = 'CUBIC_INCH' |
const CUBIC_METER = 'CUBIC_METER' |
const CUBIC_MICROMETER = 'CUBIC_MICROMETER' |
const CUBIC_MILLIMETER = 'CUBIC_MILLIMETER' |
const CUP = 'CUP' |
const CUP_CANADA = 'CUP_CANADA' |
const CUP_US = 'CUP_US' |
const DASH = 'DASH' |
const DECILITER = 'DECILITER' |
const DEKALITER = 'DEKALITER' |
const DEMI = 'DEMI' |
const DRAM = 'DRAM' |
const DROP = 'DROP' |
const FIFTH = 'FIFTH' |
const GALLON = 'GALLON' |
const GALLON_US = 'GALLON_US' |
const GALLON_US_DRY = 'GALLON_US_DRY' |
const GILL = 'GILL' |
const GILL_US = 'GILL_US' |
const HECTOLITER = 'HECTOLITER' |
const HOGSHEAD = 'HOGSHEAD' |
const HOGSHEAD_US = 'HOGSHEAD_US' |
const JIGGER = 'JIGGER' |
const KILOLITER = 'KILOLITER' |
const LITER = 'LITER' |
const MEASURE = 'MEASURE' |
const MEGALITER = 'MEGALITER' |
const MICROLITER = 'MICROLITER' |
const MILLILITER = 'MILLILITER' |
const MINIM = 'MINIM' |
const MINIM_US = 'MINIM_US' |
const OUNCE = 'OUNCE' |
const OUNCE_US = 'OUNCE_US' |
const PECK = 'PECK' |
const PECK_US = 'PECK_US' |
const PINCH = 'PINCH' |
const PINT = 'PINT' |
const PINT_US = 'PINT_US' |
const PINT_US_DRY = 'PINT_US_DRY' |
const PIPE = 'PIPE' |
const PIPE_US = 'PIPE_US' |
const PONY = 'PONY' |
const QUART = 'QUART' |
const QUART_ANCIENT = 'QUART_ANCIENT' |
const QUART_GERMANY = 'QUART_GERMANY' |
const QUART_US = 'QUART_US' |
const QUART_US_DRY = 'QUART_US_DRY' |
const SHOT = 'SHOT' |
const STANDARD = 'CUBIC_METER' |
const TABLESPOON = 'TABLESPOON' |
const TABLESPOON_UK = 'TABLESPOON_UK' |
const TABLESPOON_US = 'TABLESPOON_US' |
const TEASPOON = 'TEASPOON' |
const TEASPOON_UK = 'TEASPOON_UK' |
const TEASPOON_US = 'TEASPOON_US' |