Measure/Pressure.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Measure  
Version
$Id: Pressure.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Measure_Pressure

Package: Zend\Measure\Zend\Measure\Pressure

Class for handling pressure conversions

Parent(s)
\Zend_Measure_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  STANDARD = 'NEWTON_PER_SQUARE_METER'
Constant  ATMOSPHERE = 'ATMOSPHERE'
Constant  ATMOSPHERE_TECHNICAL = 'ATMOSPHERE_TECHNICAL'
Constant  ATTOBAR = 'ATTOBAR'
Constant  ATTOPASCAL = 'ATTOPASCAL'
Constant  BAR = 'BAR'
Constant  BARAD = 'BARAD'
Constant  BARYE = 'BARYE'
Constant  CENTIBAR = 'CENTIBAR'
Constant  CENTIHG = 'CENTIHG'
Constant  CENTIMETER_MERCURY_0C = 'CENTIMETER_MERCURY_0C'
Constant  CENTIMETER_WATER_4C = 'CENTIMETER_WATER_4C'
Constant  CENTIPASCAL = 'CENTIPASCAL'
Constant  CENTITORR = 'CENTITORR'
Constant  DECIBAR = 'DECIBAR'
Constant  DECIPASCAL = 'DECIPASCAL'
Constant  DECITORR = 'DECITORR'
Constant  DEKABAR = 'DEKABAR'
Constant  DEKAPASCAL = 'DEKAPASCAL'
Constant  DYNE_PER_SQUARE_CENTIMETER = 'DYNE_PER_SQUARE_CENTIMETER'
Constant  EXABAR = 'EXABAR'
Constant  EXAPASCAL = 'EXAPASCAL'
Constant  FEMTOBAR = 'FEMTOBAR'
Constant  FEMTOPASCAL = 'FEMTOPASCAL'
Constant  FOOT_AIR_0C = 'FOOT_AIR_0C'
Constant  FOOT_AIR_15C = 'FOOT_AIR_15C'
Constant  FOOT_HEAD = 'FOOT_HEAD'
Constant  FOOT_MERCURY_0C = 'FOOT_MERCURY_0C'
Constant  FOOT_WATER_4C = 'FOOT_WATER_4C'
Constant  GIGABAR = 'GIGABAR'
Constant  GIGAPASCAL = 'GIGAPASCAL'
Constant  GRAM_FORCE_SQUARE_CENTIMETER = 'GRAM_FORCE_SQUARE_CENTIMETER'
Constant  HECTOBAR = 'HECTOBAR'
Constant  HECTOPASCAL = 'HECTOPASCAL'
Constant  INCH_AIR_0C = 'INCH_AIR_0C'
Constant  INCH_AIR_15C = 'INCH_AIR_15C'
Constant  INCH_MERCURY_0C = 'INCH_MERCURY_0C'
Constant  INCH_WATER_4C = 'INCH_WATER_4C'
Constant  KILOBAR = 'KILOBAR'
Constant  KILOGRAM_FORCE_PER_SQUARE_CENTIMETER = 'KILOGRAM_FORCE_PER_SQUARE_CENTIMETER'
Constant  KILOGRAM_FORCE_PER_SQUARE_METER = 'KILOGRAM_FORCE_PER_SQUARE_METER'
Constant  KILOGRAM_FORCE_PER_SQUARE_MILLIMETER = 'KILOGRAM_FORCE_PER_SQUARE_MILLIMETER'
Constant  KILONEWTON_PER_SQUARE_METER = 'KILONEWTON_PER_SQUARE_METER'
Constant  KILOPASCAL = 'KILOPASCAL'
Constant  KILOPOND_PER_SQUARE_CENTIMETER = 'KILOPOND_PER_SQUARE_CENTIMETER'
Constant  KILOPOND_PER_SQUARE_METER = 'KILOPOND_PER_SQUARE_METER'
Constant  KILOPOND_PER_SQUARE_MILLIMETER = 'KILOPOND_PER_SQUARE_MILLIMETER'
Constant  KIP_PER_SQUARE_FOOT = 'KIP_PER_SQUARE_FOOT'
Constant  KIP_PER_SQUARE_INCH = 'KIP_PER_SQUARE_INCH'
Constant  MEGABAR = 'MEGABAR'
Constant  MEGANEWTON_PER_SQUARE_METER = 'MEGANEWTON_PER_SQUARE_METER'
Constant  MEGAPASCAL = 'MEGAPASCAL'
Constant  METER_AIR_0C = 'METER_AIR_0C'
Constant  METER_AIR_15C = 'METER_AIR_15C'
Constant  METER_HEAD = 'METER_HEAD'
Constant  MICROBAR = 'MICROBAR'
Constant  MICROMETER_MERCURY_0C = 'MICROMETER_MERCURY_0C'
Constant  MICROMETER_WATER_4C = 'MICROMETER_WATER_4C'
Constant  MICRON_MERCURY_0C = 'MICRON_MERCURY_0C'
Constant  MICROPASCAL = 'MICROPASCAL'
Constant  MILLIBAR = 'MILLIBAR'
Constant  MILLIHG = 'MILLIHG'
Constant  MILLIMETER_MERCURY_0C = 'MILLIMETER_MERCURY_0C'
Constant  MILLIMETER_WATER_4C = 'MILLIMETER_WATER_4C'
Constant  MILLIPASCAL = 'MILLIPASCAL'
Constant  MILLITORR = 'MILLITORR'
Constant  NANOBAR = 'NANOBAR'
Constant  NANOPASCAL = 'NANOPASCAL'
Constant  NEWTON_PER_SQUARE_METER = 'NEWTON_PER_SQUARE_METER'
Constant  NEWTON_PER_SQUARE_MILLIMETER = 'NEWTON_PER_SQUARE_MILLIMETER'
Constant  OUNCE_PER_SQUARE_INCH = 'OUNCE_PER_SQUARE_INCH'
Constant  PASCAL = 'PASCAL'
Constant  PETABAR = 'PETABAR'
Constant  PETAPASCAL = 'PETAPASCAL'
Constant  PICOBAR = 'PICOBAR'
Constant  PICOPASCAL = 'PICOPASCAL'
Constant  PIEZE = 'PIEZE'
Constant  POUND_PER_SQUARE_FOOT = 'POUND_PER_SQUARE_FOOT'
Constant  POUND_PER_SQUARE_INCH = 'POUND_PER_SQUARE_INCH'
Constant  POUNDAL_PER_SQUARE_FOOT = 'POUNDAL_PER_SQUARE_FOOT'
Constant  STHENE_PER_SQUARE_METER = 'STHENE_PER_SQUARE_METER'
Constant  TECHNICAL_ATMOSPHERE = 'TECHNICAL_ATMOSPHERE'
Constant  TERABAR = 'TERABAR'
Constant  TERAPASCAL = 'TERAPASCAL'
Constant  TON_PER_SQUARE_FOOT = 'TON_PER_SQUARE_FOOT'
Constant  TON_PER_SQUARE_FOOT_SHORT = 'TON_PER_SQUARE_FOOT_SHORT'
Constant  TON_PER_SQUARE_INCH = 'TON_PER_SQUARE_INCH'
Constant  TON_PER_SQUARE_INCH_SHORT = 'TON_PER_SQUARE_INCH_SHORT'
Constant  TON_PER_SQUARE_METER = 'TON_PER_SQUARE_METER'
Constant  TORR = 'TORR'
Constant  WATER_COLUMN_CENTIMETER = 'WATER_COLUMN_CENTIMETER'
Constant  WATER_COLUMN_INCH = 'WATER_COLUMN_INCH'
Constant  WATER_COLUMN_MILLIMETER = 'WATER_COLUMN_MILLIMETER'
Constant  YOCTOBAR = 'YOCTOBAR'
Constant  YOCTOPASCAL = 'YOCTOPASCAL'
Constant  YOTTABAR = 'YOTTABAR'
Constant  YOTTAPASCAL = 'YOTTAPASCAL'
Constant  ZEPTOBAR = 'ZEPTOBAR'
Constant  ZEPTOPASCAL = 'ZEPTOPASCAL'
Constant  ZETTABAR = 'ZETTABAR'
Constant  ZETTAPASCAL = 'ZETTAPASCAL'

Properties

Propertyprotectedstring $_locale = null
inherited

Locale identifier

Inherited from: \Zend_Measure_Abstract::$$_locale
Default valuenullDetails
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_locale  
Propertyprotectedstring $_type =
inherited

Original type for this unit

Inherited from: \Zend_Measure_Abstract::$$_type
Details
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_type  
Propertyprotectedarray $_units = array('ATMOSPHERE' => array('101325.01', 'atm'), 'ATMOSPHERE_TECHNICAL' => array('98066.5', 'atm'), 'ATTOBAR' => array('1.0e-13', 'ab'), 'ATTOPASCAL' => array('1.0e-18', 'aPa'), 'BAR' => array('100000', 'b'), 'BARAD' => array('0.1', 'barad'), 'BARYE' => array('0.1', 'ba'), 'CENTIBAR' => array('1000', 'cb'), 'CENTIHG' => array('1333.2239', 'cHg'), 'CENTIMETER_MERCURY_0C' => array('1333.2239', 'cm mercury (0°C)'), 'CENTIMETER_WATER_4C' => array('98.0665', 'cm water (4°C)'), 'CENTIPASCAL' => array('0.01', 'cPa'), 'CENTITORR' => array('1.3332237', 'cTorr'), 'DECIBAR' => array('10000', 'db'), 'DECIPASCAL' => array('0.1', 'dPa'), 'DECITORR' => array('13.332237', 'dTorr'), 'DEKABAR' => array('1000000', 'dab'), 'DEKAPASCAL' => array('10', 'daPa'), 'DYNE_PER_SQUARE_CENTIMETER' => array('0.1', 'dyn/cm²'), 'EXABAR' => array('1.0e+23', 'Eb'), 'EXAPASCAL' => array('1.0e+18', 'EPa'), 'FEMTOBAR' => array('1.0e-10', 'fb'), 'FEMTOPASCAL' => array('1.0e-15', 'fPa'), 'FOOT_AIR_0C' => array('3.8640888', 'ft air (0°C)'), 'FOOT_AIR_15C' => array('3.6622931', 'ft air (15°C)'), 'FOOT_HEAD' => array('2989.0669', 'ft head'), 'FOOT_MERCURY_0C' => array('40636.664', 'ft mercury (0°C)'), 'FOOT_WATER_4C' => array('2989.0669', 'ft water (4°C)'), 'GIGABAR' => array('1.0e+14', 'Gb'), 'GIGAPASCAL' => array('1.0e+9', 'GPa'), 'GRAM_FORCE_SQUARE_CENTIMETER' => array('98.0665', 'gf'), 'HECTOBAR' => array('1.0e+7', 'hb'), 'HECTOPASCAL' => array('100', 'hPa'), 'INCH_AIR_0C' => array(array('' => '3.8640888', '/' => '12'), 'in air (0°C)'), 'INCH_AIR_15C' => array(array('' => '3.6622931', '/' => '12'), 'in air (15°C)'), 'INCH_MERCURY_0C' => array(array('' => '40636.664', '/' => '12'), 'in mercury (0°C)'), 'INCH_WATER_4C' => array(array('' => '2989.0669', '/' => '12'), 'in water (4°C)'), 'KILOBAR' => array('1.0e+8', 'kb'), 'KILOGRAM_FORCE_PER_SQUARE_CENTIMETER' => array('98066.5', 'kgf/cm²'), 'KILOGRAM_FORCE_PER_SQUARE_METER' => array('9.80665', 'kgf/m²'), 'KILOGRAM_FORCE_PER_SQUARE_MILLIMETER' => array('9806650', 'kgf/mm²'), 'KILONEWTON_PER_SQUARE_METER' => array('1000', 'kN/m²'), 'KILOPASCAL' => array('1000', 'kPa'), 'KILOPOND_PER_SQUARE_CENTIMETER' => array('98066.5', 'kp/cm²'), 'KILOPOND_PER_SQUARE_METER' => array('9.80665', 'kp/m²'), 'KILOPOND_PER_SQUARE_MILLIMETER' => array('9806650', 'kp/mm²'), 'KIP_PER_SQUARE_FOOT' => array(array('' => '430.92233', '/' => '0.009'), 'kip/ft²'), 'KIP_PER_SQUARE_INCH' => array(array('' => '62052.81552', '/' => '0.009'), 'kip/in²'), 'MEGABAR' => array('1.0e+11', 'Mb'), 'MEGANEWTON_PER_SQUARE_METER' => array('1000000', 'MN/m²'), 'MEGAPASCAL' => array('1000000', 'MPa'), 'METER_AIR_0C' => array('12.677457', 'm air (0°C)'), 'METER_AIR_15C' => array('12.015397', 'm air (15°C)'), 'METER_HEAD' => array('9804.139432', 'm head'), 'MICROBAR' => array('0.1', 'µb'), 'MICROMETER_MERCURY_0C' => array('0.13332239', 'µm mercury (0°C)'), 'MICROMETER_WATER_4C' => array('0.00980665', 'µm water (4°C)'), 'MICRON_MERCURY_0C' => array('0.13332239', 'µ mercury (0°C)'), 'MICROPASCAL' => array('0.000001', 'µPa'), 'MILLIBAR' => array('100', 'mb'), 'MILLIHG' => array('133.32239', 'mHg'), 'MILLIMETER_MERCURY_0C' => array('133.32239', 'mm mercury (0°C)'), 'MILLIMETER_WATER_4C' => array('9.80665', 'mm water (0°C)'), 'MILLIPASCAL' => array('0.001', 'mPa'), 'MILLITORR' => array('0.13332237', 'mTorr'), 'NANOBAR' => array('0.0001', 'nb'), 'NANOPASCAL' => array('1.0e-9', 'nPa'), 'NEWTON_PER_SQUARE_METER' => array('1', 'N/m²'), 'NEWTON_PER_SQUARE_MILLIMETER' => array('1000000', 'N/mm²'), 'OUNCE_PER_SQUARE_INCH' => array('430.92233', 'oz/in²'), 'PASCAL' => array('1', 'Pa'), 'PETABAR' => array('1.0e+20', 'Pb'), 'PETAPASCAL' => array('1.0e+15', 'PPa'), 'PICOBAR' => array('0.0000001', 'pb'), 'PICOPASCAL' => array('1.0e-12', 'pPa'), 'PIEZE' => array('1000', 'pz'), 'POUND_PER_SQUARE_FOOT' => array(array('' => '430.92233', '/' => '9'), 'lb/ft²'), 'POUND_PER_SQUARE_INCH' => array('6894.75728', 'lb/in²'), 'POUNDAL_PER_SQUARE_FOOT' => array('1.4881639', 'pdl/ft²'), 'STHENE_PER_SQUARE_METER' => array('1000', 'sn/m²'), 'TECHNICAL_ATMOSPHERE' => array('98066.5', 'at'), 'TERABAR' => array('1.0e+17', 'Tb'), 'TERAPASCAL' => array('1.0e+12', 'TPa'), 'TON_PER_SQUARE_FOOT' => array(array('' => '120658.2524', '/' => '1.125'), 't/ft²'), 'TON_PER_SQUARE_FOOT_SHORT' => array(array('' => '430.92233', '/' => '0.0045'), 't/ft²'), 'TON_PER_SQUARE_INCH' => array(array('' => '17374788.3456', '/' => '1.125'), 't/in²'), 'TON_PER_SQUARE_INCH_SHORT' => array(array('' => '62052.81552', '/' => '0.0045'), 't/in²'), 'TON_PER_SQUARE_METER' => array('9806.65', 't/m²'), 'TORR' => array('133.32237', 'Torr'), 'WATER_COLUMN_CENTIMETER' => array('98.0665', 'WC (cm)'), 'WATER_COLUMN_INCH' => array(array('' => '2989.0669', '/' => '12'), 'WC (in)'), 'WATER_COLUMN_MILLIMETER' => array('9.80665', 'WC (mm)'), 'YOCTOBAR' => array('1.0e-19', 'yb'), 'YOCTOPASCAL' => array('1.0e-24', 'yPa'), 'YOTTABAR' => array('1.0e+29', 'Yb'), 'YOTTAPASCAL' => array('1.0e+24', 'YPa'), 'ZEPTOBAR' => array('1.0e-16', 'zb'), 'ZEPTOPASCAL' => array('1.0e-21', 'zPa'), 'ZETTABAR' => array('1.0e+26', 'Zb'), 'ZETTAPASCAL' => array('1.0e+21', 'ZPa'), 'STANDARD' => 'NEWTON_PER_SQUARE_METER')

Calculations for all pressure units

Default valuearray('ATMOSPHERE' => array('101325.01', 'atm'), 'ATMOSPHERE_TECHNICAL' => array('98066.5', 'atm'), 'ATTOBAR' => array('1.0e-13', 'ab'), 'ATTOPASCAL' => array('1.0e-18', 'aPa'), 'BAR' => array('100000', 'b'), 'BARAD' => array('0.1', 'barad'), 'BARYE' => array('0.1', 'ba'), 'CENTIBAR' => array('1000', 'cb'), 'CENTIHG' => array('1333.2239', 'cHg'), 'CENTIMETER_MERCURY_0C' => array('1333.2239', 'cm mercury (0°C)'), 'CENTIMETER_WATER_4C' => array('98.0665', 'cm water (4°C)'), 'CENTIPASCAL' => array('0.01', 'cPa'), 'CENTITORR' => array('1.3332237', 'cTorr'), 'DECIBAR' => array('10000', 'db'), 'DECIPASCAL' => array('0.1', 'dPa'), 'DECITORR' => array('13.332237', 'dTorr'), 'DEKABAR' => array('1000000', 'dab'), 'DEKAPASCAL' => array('10', 'daPa'), 'DYNE_PER_SQUARE_CENTIMETER' => array('0.1', 'dyn/cm²'), 'EXABAR' => array('1.0e+23', 'Eb'), 'EXAPASCAL' => array('1.0e+18', 'EPa'), 'FEMTOBAR' => array('1.0e-10', 'fb'), 'FEMTOPASCAL' => array('1.0e-15', 'fPa'), 'FOOT_AIR_0C' => array('3.8640888', 'ft air (0°C)'), 'FOOT_AIR_15C' => array('3.6622931', 'ft air (15°C)'), 'FOOT_HEAD' => array('2989.0669', 'ft head'), 'FOOT_MERCURY_0C' => array('40636.664', 'ft mercury (0°C)'), 'FOOT_WATER_4C' => array('2989.0669', 'ft water (4°C)'), 'GIGABAR' => array('1.0e+14', 'Gb'), 'GIGAPASCAL' => array('1.0e+9', 'GPa'), 'GRAM_FORCE_SQUARE_CENTIMETER' => array('98.0665', 'gf'), 'HECTOBAR' => array('1.0e+7', 'hb'), 'HECTOPASCAL' => array('100', 'hPa'), 'INCH_AIR_0C' => array(array('' => '3.8640888', '/' => '12'), 'in air (0°C)'), 'INCH_AIR_15C' => array(array('' => '3.6622931', '/' => '12'), 'in air (15°C)'), 'INCH_MERCURY_0C' => array(array('' => '40636.664', '/' => '12'), 'in mercury (0°C)'), 'INCH_WATER_4C' => array(array('' => '2989.0669', '/' => '12'), 'in water (4°C)'), 'KILOBAR' => array('1.0e+8', 'kb'), 'KILOGRAM_FORCE_PER_SQUARE_CENTIMETER' => array('98066.5', 'kgf/cm²'), 'KILOGRAM_FORCE_PER_SQUARE_METER' => array('9.80665', 'kgf/m²'), 'KILOGRAM_FORCE_PER_SQUARE_MILLIMETER' => array('9806650', 'kgf/mm²'), 'KILONEWTON_PER_SQUARE_METER' => array('1000', 'kN/m²'), 'KILOPASCAL' => array('1000', 'kPa'), 'KILOPOND_PER_SQUARE_CENTIMETER' => array('98066.5', 'kp/cm²'), 'KILOPOND_PER_SQUARE_METER' => array('9.80665', 'kp/m²'), 'KILOPOND_PER_SQUARE_MILLIMETER' => array('9806650', 'kp/mm²'), 'KIP_PER_SQUARE_FOOT' => array(array('' => '430.92233', '/' => '0.009'), 'kip/ft²'), 'KIP_PER_SQUARE_INCH' => array(array('' => '62052.81552', '/' => '0.009'), 'kip/in²'), 'MEGABAR' => array('1.0e+11', 'Mb'), 'MEGANEWTON_PER_SQUARE_METER' => array('1000000', 'MN/m²'), 'MEGAPASCAL' => array('1000000', 'MPa'), 'METER_AIR_0C' => array('12.677457', 'm air (0°C)'), 'METER_AIR_15C' => array('12.015397', 'm air (15°C)'), 'METER_HEAD' => array('9804.139432', 'm head'), 'MICROBAR' => array('0.1', 'µb'), 'MICROMETER_MERCURY_0C' => array('0.13332239', 'µm mercury (0°C)'), 'MICROMETER_WATER_4C' => array('0.00980665', 'µm water (4°C)'), 'MICRON_MERCURY_0C' => array('0.13332239', 'µ mercury (0°C)'), 'MICROPASCAL' => array('0.000001', 'µPa'), 'MILLIBAR' => array('100', 'mb'), 'MILLIHG' => array('133.32239', 'mHg'), 'MILLIMETER_MERCURY_0C' => array('133.32239', 'mm mercury (0°C)'), 'MILLIMETER_WATER_4C' => array('9.80665', 'mm water (0°C)'), 'MILLIPASCAL' => array('0.001', 'mPa'), 'MILLITORR' => array('0.13332237', 'mTorr'), 'NANOBAR' => array('0.0001', 'nb'), 'NANOPASCAL' => array('1.0e-9', 'nPa'), 'NEWTON_PER_SQUARE_METER' => array('1', 'N/m²'), 'NEWTON_PER_SQUARE_MILLIMETER' => array('1000000', 'N/mm²'), 'OUNCE_PER_SQUARE_INCH' => array('430.92233', 'oz/in²'), 'PASCAL' => array('1', 'Pa'), 'PETABAR' => array('1.0e+20', 'Pb'), 'PETAPASCAL' => array('1.0e+15', 'PPa'), 'PICOBAR' => array('0.0000001', 'pb'), 'PICOPASCAL' => array('1.0e-12', 'pPa'), 'PIEZE' => array('1000', 'pz'), 'POUND_PER_SQUARE_FOOT' => array(array('' => '430.92233', '/' => '9'), 'lb/ft²'), 'POUND_PER_SQUARE_INCH' => array('6894.75728', 'lb/in²'), 'POUNDAL_PER_SQUARE_FOOT' => array('1.4881639', 'pdl/ft²'), 'STHENE_PER_SQUARE_METER' => array('1000', 'sn/m²'), 'TECHNICAL_ATMOSPHERE' => array('98066.5', 'at'), 'TERABAR' => array('1.0e+17', 'Tb'), 'TERAPASCAL' => array('1.0e+12', 'TPa'), 'TON_PER_SQUARE_FOOT' => array(array('' => '120658.2524', '/' => '1.125'), 't/ft²'), 'TON_PER_SQUARE_FOOT_SHORT' => array(array('' => '430.92233', '/' => '0.0045'), 't/ft²'), 'TON_PER_SQUARE_INCH' => array(array('' => '17374788.3456', '/' => '1.125'), 't/in²'), 'TON_PER_SQUARE_INCH_SHORT' => array(array('' => '62052.81552', '/' => '0.0045'), 't/in²'), 'TON_PER_SQUARE_METER' => array('9806.65', 't/m²'), 'TORR' => array('133.32237', 'Torr'), 'WATER_COLUMN_CENTIMETER' => array('98.0665', 'WC (cm)'), 'WATER_COLUMN_INCH' => array(array('' => '2989.0669', '/' => '12'), 'WC (in)'), 'WATER_COLUMN_MILLIMETER' => array('9.80665', 'WC (mm)'), 'YOCTOBAR' => array('1.0e-19', 'yb'), 'YOCTOPASCAL' => array('1.0e-24', 'yPa'), 'YOTTABAR' => array('1.0e+29', 'Yb'), 'YOTTAPASCAL' => array('1.0e+24', 'YPa'), 'ZEPTOBAR' => array('1.0e-16', 'zb'), 'ZEPTOPASCAL' => array('1.0e-21', 'zPa'), 'ZETTABAR' => array('1.0e+26', 'Zb'), 'ZETTAPASCAL' => array('1.0e+21', 'ZPa'), 'STANDARD' => 'NEWTON_PER_SQUARE_METER')Details
Type
array
Propertyprotectedstring $_value =
inherited

Plain value in standard unit

Inherited from: \Zend_Measure_Abstract::$$_value
Details
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_value  

Methods

methodpublic__construct(mixed $value, int $type = null, \Zend_Locale $locale = null) : void
inherited

Zend_Measure_Abstract is an abstract class for the different measurement types

Inherited from: \Zend_Measure_Abstract::__construct()
Parameters
Name Type Description
$value mixed

Value as string, integer, real or float

$type int

OPTIONAL a measure type f.e. Zend_Measure_Length::METER

$locale \Zend_Locale

OPTIONAL a Zend_Locale Type

Throws
Exception Description
\Zend_Measure_Exception
methodpublic__toString() : string
inherited

Returns a string representation

Inherited from: \Zend_Measure_Abstract::__toString()
Returns
Type Description
string
methodpublicadd(\Zend_Measure_Abstract $object) : \Zend_Measure_Abstract
inherited

Adds an unit to another one

Inherited from: \Zend_Measure_Abstract::add()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object of same unit type

Returns
Type Description
\Zend_Measure_Abstract
methodpubliccompare(\Zend_Measure_Abstract $object) : boolean
inherited

Compares two units

Inherited from: \Zend_Measure_Abstract::compare()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object of same unit type

Returns
Type Description
boolean
methodpublicconvertTo(string $type, integer $round = 2, string | \Zend_Locale $locale = null) : string
inherited

Alias function for setType returning the converted unit

Inherited from: \Zend_Measure_Abstract::convertTo()
Parameters
Name Type Description
$type string

Constant Type

$round integer

(Optional) Rounds the value to a given precision

$locale string | \Zend_Locale

(Optional) Locale to set for the number

Returns
Type Description
string
methodpublicequals(\Zend_Measure_Abstract $object) : boolean
inherited

Compare if the value and type is equal

Inherited from: \Zend_Measure_Abstract::equals()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object to compare

Returns
Type Description
boolean
methodpublicgetConversionList() : array
inherited

Returns the conversion list

Inherited from: \Zend_Measure_Abstract::getConversionList()
Returns
Type Description
array
methodpublicgetLocale() : string
inherited

Returns the actual set locale

Inherited from: \Zend_Measure_Abstract::getLocale()
Returns
Type Description
string
methodpublicgetType() : \type
inherited

Returns the original type

Inherited from: \Zend_Measure_Abstract::getType()
Returns
Type Description
\type
methodpublicgetValue(integer $round = -1, string | \Zend_Locale $locale = null) : integer | string
inherited

Returns the internal value

Inherited from: \Zend_Measure_Abstract::getValue()
Parameters
Name Type Description
$round integer

(Optional) Rounds the value to an given precision, Default is -1 which returns without rounding

$locale string | \Zend_Locale

(Optional) Locale for number representation

Returns
Type Description
integer | string
methodpublicsetLocale(string | \Zend_Locale $locale = null, boolean $check = false) : \Zend_Measure_Abstract
inherited

Sets a new locale for the value representation

Inherited from: \Zend_Measure_Abstract::setLocale()
Parameters
Name Type Description
$locale string | \Zend_Locale

(Optional) New locale to set

$check boolean

False, check but don't set; True, set the new locale

Returns
Type Description
\Zend_Measure_Abstract
methodpublicsetType(string $type) : \Zend_Measure_Abstract
inherited

Set a new type, and convert the value

Inherited from: \Zend_Measure_Abstract::setType()
Parameters
Name Type Description
$type string

New type to set

Returns
Type Description
\Zend_Measure_Abstract
Throws
Exception Description
\Zend_Measure_Exception
methodpublicsetValue(integer | string $value, string $type = null, string | \Zend_Locale $locale = null) : \Zend_Measure_Abstract
inherited

Set a new value

Inherited from: \Zend_Measure_Abstract::setValue()
Parameters
Name Type Description
$value integer | string

Value as string, integer, real or float

$type string

OPTIONAL A measure type f.e. Zend_Measure_Length::METER

$locale string | \Zend_Locale

OPTIONAL Locale for parsing numbers

Returns
Type Description
\Zend_Measure_Abstract
Throws
Exception Description
\Zend_Measure_Exception
methodpublicsub(\Zend_Measure_Abstract $object) : \Zend_Measure_Abstract
inherited

Substracts an unit from another one

Inherited from: \Zend_Measure_Abstract::sub()
Parameters
Name Type Description
$object \Zend_Measure_Abstract

object of same unit type

Returns
Type Description
\Zend_Measure_Abstract
methodpublictoString(integer $round = -1, string | \Zend_Locale $locale = null) : string
inherited

Returns a string representation

Inherited from: \Zend_Measure_Abstract::toString()
Parameters
Name Type Description
$round integer

(Optional) Runds the value to an given exception

$locale string | \Zend_Locale

(Optional) Locale to set for the number

Returns
Type Description
string
Documentation was generated by phpDocumentor 2.0.0a8.