Class Zend_Measure_Current

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

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Current
Class Constant Summary
 ABAMPERE = 'ABAMPERE'
 AMPERE = 'AMPERE'
 BIOT = 'BIOT'
 CENTIAMPERE = 'CENTIAMPERE'
 COULOMB_PER_SECOND = 'COULOMB_PER_SECOND'
 DECIAMPERE = 'DECIAMPERE'
 DEKAAMPERE = 'DEKAAMPERE'
 ELECTROMAGNETIC_UNIT = 'ELECTROMAGNATIC_UNIT'
 ELECTROSTATIC_UNIT = 'ELECTROSTATIC_UNIT'
 FRANCLIN_PER_SECOND = 'FRANCLIN_PER_SECOND'
 GAUSSIAN = 'GAUSSIAN'
 GIGAAMPERE = 'GIGAAMPERE'
 GILBERT = 'GILBERT'
 HECTOAMPERE = 'HECTOAMPERE'
 KILOAMPERE = 'KILOAMPERE'
 MEGAAMPERE = 'MEGAAMPERE'
 MICROAMPERE = 'MICROAMPERE'
 MILLIAMPERE = 'MILLIAMPERE'
 NANOAMPERE = 'NANOAMPERE'
 PICOAMPERE = 'PICOAMPERE'
 SIEMENS_VOLT = 'SIEMENS_VOLT'
 STANDARD = 'AMPERE'
 STATAMPERE = 'STATAMPERE'
 TERAAMPERE = 'TERAAMPERE'
 VOLT_PER_OHM = 'VOLT_PER_OHM'
 WATT_PER_VOLT = 'WATT_PER_VOLT'
 WEBER_PER_HENRY = 'WEBER_PER_HENRY'
Method Summary
 boolean equals (Zend_Measure_Current $object)
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 Zend_Measure_Current __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 126)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Current $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

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

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

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

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

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

Returns a string representation

  • access: public
string toString ()

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

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
ABAMPERE = 'ABAMPERE' (line 43)
AMPERE = 'AMPERE' (line 44)
BIOT = 'BIOT' (line 45)
CENTIAMPERE = 'CENTIAMPERE' (line 46)
COULOMB_PER_SECOND = 'COULOMB_PER_SECOND' (line 47)
DECIAMPERE = 'DECIAMPERE' (line 48)
DEKAAMPERE = 'DEKAAMPERE' (line 49)
ELECTROMAGNETIC_UNIT = 'ELECTROMAGNATIC_UNIT' (line 50)
ELECTROSTATIC_UNIT = 'ELECTROSTATIC_UNIT' (line 51)
FRANCLIN_PER_SECOND = 'FRANCLIN_PER_SECOND' (line 52)
GAUSSIAN = 'GAUSSIAN' (line 53)
GIGAAMPERE = 'GIGAAMPERE' (line 54)
GILBERT = 'GILBERT' (line 55)
HECTOAMPERE = 'HECTOAMPERE' (line 56)
KILOAMPERE = 'KILOAMPERE' (line 57)
MEGAAMPERE = 'MEGAAMPERE' (line 58)
MICROAMPERE = 'MICROAMPERE' (line 59)
MILLIAMPERE = 'MILLIAMPERE' (line 60)
NANOAMPERE = 'NANOAMPERE' (line 61)
PICOAMPERE = 'PICOAMPERE' (line 62)
SIEMENS_VOLT = 'SIEMENS_VOLT' (line 63)
STANDARD = 'AMPERE' (line 41)
STATAMPERE = 'STATAMPERE' (line 64)
TERAAMPERE = 'TERAAMPERE' (line 65)
VOLT_PER_OHM = 'VOLT_PER_OHM' (line 66)
WATT_PER_VOLT = 'WATT_PER_VOLT' (line 67)
WEBER_PER_HENRY = 'WEBER_PER_HENRY' (line 68)

Documentation generated on Thu, 18 Jan 2007 09:52:39 -0800 by phpDocumentor 1.3.1