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

Public Attributes

const STANDARD = 'HERTZ'
 
const ONE_PER_SECOND = 'ONE_PER_SECOND'
 
const CYCLE_PER_SECOND = 'CYCLE_PER_SECOND'
 
const DEGREE_PER_HOUR = 'DEGREE_PER_HOUR'
 
const DEGREE_PER_MINUTE = 'DEGREE_PER_MINUTE'
 
const DEGREE_PER_SECOND = 'DEGREE_PER_SECOND'
 
const GIGAHERTZ = 'GIGAHERTZ'
 
const HERTZ = 'HERTZ'
 
const KILOHERTZ = 'KILOHERTZ'
 
const MEGAHERTZ = 'MEGAHERTZ'
 
const MILLIHERTZ = 'MILLIHERTZ'
 
const RADIAN_PER_HOUR = 'RADIAN_PER_HOUR'
 
const RADIAN_PER_MINUTE = 'RADIAN_PER_MINUTE'
 
const RADIAN_PER_SECOND = 'RADIAN_PER_SECOND'
 
const REVOLUTION_PER_HOUR = 'REVOLUTION_PER_HOUR'
 
const REVOLUTION_PER_MINUTE = 'REVOLUTION_PER_MINUTE'
 
const REVOLUTION_PER_SECOND = 'REVOLUTION_PER_SECOND'
 
const RPM = 'RPM'
 
const TERRAHERTZ = 'TERRAHERTZ'
 

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(
'ONE_PER_SECOND' => array('1', '1/s'),
'CYCLE_PER_SECOND' => array('1', 'cps'),
'DEGREE_PER_HOUR' => array(array('' => '1', '/' => '1296000'), '°/h'),
'DEGREE_PER_MINUTE' => array(array('' => '1', '/' => '21600'), '°/m'),
'DEGREE_PER_SECOND' => array(array('' => '1', '/' => '360'), '°/s'),
'GIGAHERTZ' => array('1000000000', 'GHz'),
'HERTZ' => array('1', 'Hz'),
'KILOHERTZ' => array('1000', 'kHz'),
'MEGAHERTZ' => array('1000000', 'MHz'),
'MILLIHERTZ' => array('0.001', 'mHz'),
'RADIAN_PER_HOUR' => array(array('' => '1', '/' => '22619.467'), 'rad/h'),
'RADIAN_PER_MINUTE' => array(array('' => '1', '/' => '376.99112'), 'rad/m'),
'RADIAN_PER_SECOND' => array(array('' => '1', '/' => '6.2831853'), 'rad/s'),
'REVOLUTION_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'rph'),
'REVOLUTION_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'rpm'),
'REVOLUTION_PER_SECOND' => array('1', 'rps'),
'RPM' => array(array('' => '1', '/' => '60'), 'rpm'),
'TERRAHERTZ' => array('1000000000000', 'THz'),
'STANDARD' =>'HERTZ'
)
const CYCLE_PER_SECOND = 'CYCLE_PER_SECOND'
const DEGREE_PER_HOUR = 'DEGREE_PER_HOUR'
const DEGREE_PER_MINUTE = 'DEGREE_PER_MINUTE'
const DEGREE_PER_SECOND = 'DEGREE_PER_SECOND'
const GIGAHERTZ = 'GIGAHERTZ'
const HERTZ = 'HERTZ'
const KILOHERTZ = 'KILOHERTZ'
const MEGAHERTZ = 'MEGAHERTZ'
const MILLIHERTZ = 'MILLIHERTZ'
const ONE_PER_SECOND = 'ONE_PER_SECOND'
const RADIAN_PER_HOUR = 'RADIAN_PER_HOUR'
const RADIAN_PER_MINUTE = 'RADIAN_PER_MINUTE'
const RADIAN_PER_SECOND = 'RADIAN_PER_SECOND'
const REVOLUTION_PER_HOUR = 'REVOLUTION_PER_HOUR'
const REVOLUTION_PER_MINUTE = 'REVOLUTION_PER_MINUTE'
const REVOLUTION_PER_SECOND = 'REVOLUTION_PER_SECOND'
const RPM = 'RPM'
const STANDARD = 'HERTZ'
const TERRAHERTZ = 'TERRAHERTZ'