Class Zend_Measure_Frequency

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

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

Zend_Measure_Abstract
   |
   --Zend_Measure_Frequency
Class Constant Summary
 CYCLE_PER_SECOND = 'CYCLE_PER_SECOND'
 DEGREE_PER_HOUR = 'DEGREE_PER_HOUR'
 DEGREE_PER_MINUTE = 'DEGREE_PER_MINUTE'
 DEGREE_PER_SECOND = 'DEGREE_PER_SECOND'
 GIGAHERTZ = 'GIGAHERTZ'
 HERTZ = 'HERTZ'
 KILOHERTZ = 'KILOHERTZ'
 MEGAHERTZ = 'MEGAHERTZ'
 MILLIHERTZ = 'MILLIHERTZ'
 ONE_PER_SECOND = 'ONE_PER_SECOND'
 RADIAN_PER_HOUR = 'RADIAN_PER_HOUR'
 RADIAN_PER_MINUTE = 'RADIAN_PER_MINUTE'
 RADIAN_PER_SECOND = 'RADIAN_PER_SECOND'
 REVOLUTION_PER_HOUR = 'REVOLUTION_PER_HOUR'
 REVOLUTION_PER_MINUTE = 'REVOLUTION_PER_MINUTE'
 REVOLUTION_PER_SECOND = 'REVOLUTION_PER_SECOND'
 RPM = 'RPM'
 STANDARD = 'HERTZ'
 TERRAHERTZ = 'TERRAHERTZ'
Method Summary
 boolean equals (Zend_Measure_Frequency $object)
 Zend_Measure_Frequency __construct (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 void setType (string $type)
 void setValue (integer|string $value, [string $type = null], [string|Zend_Locale $locale = null])
 string toString ()
 string __toString ()
Methods
equals (line 110)

Compare if the value and type is equal

  • access: public
boolean equals (Zend_Measure_Frequency $object)

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

Returns the conversion list

  • access: public
array getConversionList ()

Redefinition of:
Zend_Measure_Abstract::getConversionList()
Returns the conversion list
Constructor __construct (line 98)

Zend_Measure_Frequency provides an locale aware class for conversion and formatting of Frequency 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_Frequency __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_Frequency Type
  • string|Zend_Locale $locale: OPTIONAL Locale for parsing numbers
setType (line 163)

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

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

Redefinition of:
Zend_Measure_Abstract::setValue()
Sets the internal value
toString (line 212)

Returns a string representation

  • access: public
string toString ()

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

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
CYCLE_PER_SECOND = 'CYCLE_PER_SECOND' (line 44)
DEGREE_PER_HOUR = 'DEGREE_PER_HOUR' (line 45)
DEGREE_PER_MINUTE = 'DEGREE_PER_MINUTE' (line 46)
DEGREE_PER_SECOND = 'DEGREE_PER_SECOND' (line 47)
GIGAHERTZ = 'GIGAHERTZ' (line 48)
HERTZ = 'HERTZ' (line 49)
KILOHERTZ = 'KILOHERTZ' (line 50)
MEGAHERTZ = 'MEGAHERTZ' (line 51)
MILLIHERTZ = 'MILLIHERTZ' (line 52)
ONE_PER_SECOND = 'ONE_PER_SECOND' (line 43)
RADIAN_PER_HOUR = 'RADIAN_PER_HOUR' (line 53)
RADIAN_PER_MINUTE = 'RADIAN_PER_MINUTE' (line 54)
RADIAN_PER_SECOND = 'RADIAN_PER_SECOND' (line 55)
REVOLUTION_PER_HOUR = 'REVOLUTION_PER_HOUR' (line 56)
REVOLUTION_PER_MINUTE = 'REVOLUTION_PER_MINUTE' (line 57)
REVOLUTION_PER_SECOND = 'REVOLUTION_PER_SECOND' (line 58)
RPM = 'RPM' (line 59)
STANDARD = 'HERTZ' (line 41)
TERRAHERTZ = 'TERRAHERTZ' (line 60)

Documentation generated on Thu, 18 Jan 2007 09:54:24 -0800 by phpDocumentor 1.3.1