Zend Framework
1.12
|
Public Attributes | |
const | STANDARD = 'MOLE_PER_SECOND' |
const | CENTIMOLE_PER_DAY = 'CENTIMOLE_PER_DAY' |
const | CENTIMOLE_PER_HOUR = 'CENTIMOLE_PER_HOUR' |
const | CENTIMOLE_PER_MINUTE = 'CENTIMOLE_PER_MINUTE' |
const | CENTIMOLE_PER_SECOND = 'CENTIMOLE_PER_SECOND' |
const | MEGAMOLE_PER_DAY = 'MEGAMOLE_PER_DAY' |
const | MEGAMOLE_PER_HOUR = 'MEGAMOLE_PER_HOUR' |
const | MEGAMOLE_PER_MINUTE = 'MEGAMOLE_PER_MINUTE' |
const | MEGAMOLE_PER_SECOND = 'MEGAMOLE_PER_SECOND' |
const | MICROMOLE_PER_DAY = 'MICROMOLE_PER_DAY' |
const | MICROMOLE_PER_HOUR = 'MICROMOLE_PER_HOUR' |
const | MICROMOLE_PER_MINUTE = 'MICROMOLE_PER_MINUTE' |
const | MICROMOLE_PER_SECOND = 'MICROMOLE_PER_SECOND' |
const | MILLIMOLE_PER_DAY = 'MILLIMOLE_PER_DAY' |
const | MILLIMOLE_PER_HOUR = 'MILLIMOLE_PER_HOUR' |
const | MILLIMOLE_PER_MINUTE = 'MILLIMOLE_PER_MINUTE' |
const | MILLIMOLE_PER_SECOND = 'MILLIMOLE_PER_SECOND' |
const | MOLE_PER_DAY = 'MOLE_PER_DAY' |
const | MOLE_PER_HOUR = 'MOLE_PER_HOUR' |
const | MOLE_PER_MINUTE = 'MOLE_PER_MINUTE' |
const | MOLE_PER_SECOND = 'MOLE_PER_SECOND' |
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 CENTIMOLE_PER_DAY = 'CENTIMOLE_PER_DAY' |
const CENTIMOLE_PER_HOUR = 'CENTIMOLE_PER_HOUR' |
const CENTIMOLE_PER_MINUTE = 'CENTIMOLE_PER_MINUTE' |
const CENTIMOLE_PER_SECOND = 'CENTIMOLE_PER_SECOND' |
const MEGAMOLE_PER_DAY = 'MEGAMOLE_PER_DAY' |
const MEGAMOLE_PER_HOUR = 'MEGAMOLE_PER_HOUR' |
const MEGAMOLE_PER_MINUTE = 'MEGAMOLE_PER_MINUTE' |
const MEGAMOLE_PER_SECOND = 'MEGAMOLE_PER_SECOND' |
const MICROMOLE_PER_DAY = 'MICROMOLE_PER_DAY' |
const MICROMOLE_PER_HOUR = 'MICROMOLE_PER_HOUR' |
const MICROMOLE_PER_MINUTE = 'MICROMOLE_PER_MINUTE' |
const MICROMOLE_PER_SECOND = 'MICROMOLE_PER_SECOND' |
const MILLIMOLE_PER_DAY = 'MILLIMOLE_PER_DAY' |
const MILLIMOLE_PER_HOUR = 'MILLIMOLE_PER_HOUR' |
const MILLIMOLE_PER_MINUTE = 'MILLIMOLE_PER_MINUTE' |
const MILLIMOLE_PER_SECOND = 'MILLIMOLE_PER_SECOND' |
const MOLE_PER_DAY = 'MOLE_PER_DAY' |
const MOLE_PER_HOUR = 'MOLE_PER_HOUR' |
const MOLE_PER_MINUTE = 'MOLE_PER_MINUTE' |
const MOLE_PER_SECOND = 'MOLE_PER_SECOND' |
const STANDARD = 'MOLE_PER_SECOND' |