Zend Framework  1.12
Public Attributes | Protected Attributes | List of all members
Zend_Measure_Current Class Reference

Public Attributes

const STANDARD = 'AMPERE'
 
const ABAMPERE = 'ABAMPERE'
 
const AMPERE = 'AMPERE'
 
const BIOT = 'BIOT'
 
const CENTIAMPERE = 'CENTIAMPERE'
 
const COULOMB_PER_SECOND = 'COULOMB_PER_SECOND'
 
const DECIAMPERE = 'DECIAMPERE'
 
const DEKAAMPERE = 'DEKAAMPERE'
 
const ELECTROMAGNETIC_UNIT = 'ELECTROMAGNATIC_UNIT'
 
const ELECTROSTATIC_UNIT = 'ELECTROSTATIC_UNIT'
 
const FRANCLIN_PER_SECOND = 'FRANCLIN_PER_SECOND'
 
const GAUSSIAN = 'GAUSSIAN'
 
const GIGAAMPERE = 'GIGAAMPERE'
 
const GILBERT = 'GILBERT'
 
const HECTOAMPERE = 'HECTOAMPERE'
 
const KILOAMPERE = 'KILOAMPERE'
 
const MEGAAMPERE = 'MEGAAMPERE'
 
const MICROAMPERE = 'MICROAMPERE'
 
const MILLIAMPERE = 'MILLIAMPERE'
 
const NANOAMPERE = 'NANOAMPERE'
 
const PICOAMPERE = 'PICOAMPERE'
 
const SIEMENS_VOLT = 'SIEMENS_VOLT'
 
const STATAMPERE = 'STATAMPERE'
 
const TERAAMPERE = 'TERAAMPERE'
 
const VOLT_PER_OHM = 'VOLT_PER_OHM'
 
const WATT_PER_VOLT = 'WATT_PER_VOLT'
 
const WEBER_PER_HENRY = 'WEBER_PER_HENRY'
 

Protected Attributes

 $_units
 
- Protected Attributes inherited from Zend_Measure_Abstract
 $_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

- Public Member Functions inherited from Zend_Measure_Abstract
 __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.
 

Member Data Documentation

$_units
protected
Initial value:
= array(
'ABAMPERE' => array('10', 'abampere'),
'AMPERE' => array('1', 'A'),
'BIOT' => array('10', 'Bi'),
'CENTIAMPERE' => array('0.01', 'cA'),
'COULOMB_PER_SECOND' => array('1', 'C/s'),
'DECIAMPERE' => array('0.1', 'dA'),
'DEKAAMPERE' => array('10', 'daA'),
'ELECTROMAGNATIC_UNIT' => array('10', 'current emu'),
'ELECTROSTATIC_UNIT' => array('3.335641e-10', 'current esu'),
'FRANCLIN_PER_SECOND' => array('3.335641e-10', 'Fr/s'),
'GAUSSIAN' => array('3.335641e-10', 'G current'),
'GIGAAMPERE' => array('1.0e+9', 'GA'),
'GILBERT' => array('0.79577472', 'Gi'),
'HECTOAMPERE' => array('100', 'hA'),
'KILOAMPERE' => array('1000', 'kA'),
'MEGAAMPERE' => array('1000000', 'MA') ,
'MICROAMPERE' => array('0.000001', 'µA'),
'MILLIAMPERE' => array('0.001', 'mA'),
'NANOAMPERE' => array('1.0e-9', 'nA'),
'PICOAMPERE' => array('1.0e-12', 'pA'),
'SIEMENS_VOLT' => array('1', 'SV'),
'STATAMPERE' => array('3.335641e-10', 'statampere'),
'TERAAMPERE' => array('1.0e+12', 'TA'),
'VOLT_PER_OHM' => array('1', 'V/Ohm'),
'WATT_PER_VOLT' => array('1', 'W/V'),
'WEBER_PER_HENRY' => array('1', 'Wb/H'),
'STANDARD' => 'AMPERE'
)
const ABAMPERE = 'ABAMPERE'
const AMPERE = 'AMPERE'
const BIOT = 'BIOT'
const CENTIAMPERE = 'CENTIAMPERE'
const COULOMB_PER_SECOND = 'COULOMB_PER_SECOND'
const DECIAMPERE = 'DECIAMPERE'
const DEKAAMPERE = 'DEKAAMPERE'
const ELECTROMAGNETIC_UNIT = 'ELECTROMAGNATIC_UNIT'
const ELECTROSTATIC_UNIT = 'ELECTROSTATIC_UNIT'
const FRANCLIN_PER_SECOND = 'FRANCLIN_PER_SECOND'
const GAUSSIAN = 'GAUSSIAN'
const GIGAAMPERE = 'GIGAAMPERE'
const GILBERT = 'GILBERT'
const HECTOAMPERE = 'HECTOAMPERE'
const KILOAMPERE = 'KILOAMPERE'
const MEGAAMPERE = 'MEGAAMPERE'
const MICROAMPERE = 'MICROAMPERE'
const MILLIAMPERE = 'MILLIAMPERE'
const NANOAMPERE = 'NANOAMPERE'
const PICOAMPERE = 'PICOAMPERE'
const SIEMENS_VOLT = 'SIEMENS_VOLT'
const STANDARD = 'AMPERE'
const STATAMPERE = 'STATAMPERE'
const TERAAMPERE = 'TERAAMPERE'
const VOLT_PER_OHM = 'VOLT_PER_OHM'
const WATT_PER_VOLT = 'WATT_PER_VOLT'
const WEBER_PER_HENRY = 'WEBER_PER_HENRY'