File indexing completed on 2025-03-02 05:29:35
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Measure 0017 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0018 * @license http://framework.zend.com/license/new-bsd New BSD License 0019 * @version $Id$ 0020 */ 0021 0022 /** 0023 * Implement needed classes 0024 */ 0025 // require_once 'Zend/Measure/Abstract.php'; 0026 // require_once 'Zend/Locale.php'; 0027 0028 /** 0029 * Class for handling flow mole conversions 0030 * 0031 * @category Zend 0032 * @package Zend_Measure 0033 * @subpackage Zend_Measure_Flow_Mole 0034 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0035 * @license http://framework.zend.com/license/new-bsd New BSD License 0036 */ 0037 class Zend_Measure_Flow_Mole extends Zend_Measure_Abstract 0038 { 0039 const STANDARD = 'MOLE_PER_SECOND'; 0040 0041 const CENTIMOLE_PER_DAY = 'CENTIMOLE_PER_DAY'; 0042 const CENTIMOLE_PER_HOUR = 'CENTIMOLE_PER_HOUR'; 0043 const CENTIMOLE_PER_MINUTE = 'CENTIMOLE_PER_MINUTE'; 0044 const CENTIMOLE_PER_SECOND = 'CENTIMOLE_PER_SECOND'; 0045 const MEGAMOLE_PER_DAY = 'MEGAMOLE_PER_DAY'; 0046 const MEGAMOLE_PER_HOUR = 'MEGAMOLE_PER_HOUR'; 0047 const MEGAMOLE_PER_MINUTE = 'MEGAMOLE_PER_MINUTE'; 0048 const MEGAMOLE_PER_SECOND = 'MEGAMOLE_PER_SECOND'; 0049 const MICROMOLE_PER_DAY = 'MICROMOLE_PER_DAY'; 0050 const MICROMOLE_PER_HOUR = 'MICROMOLE_PER_HOUR'; 0051 const MICROMOLE_PER_MINUTE = 'MICROMOLE_PER_MINUTE'; 0052 const MICROMOLE_PER_SECOND = 'MICROMOLE_PER_SECOND'; 0053 const MILLIMOLE_PER_DAY = 'MILLIMOLE_PER_DAY'; 0054 const MILLIMOLE_PER_HOUR = 'MILLIMOLE_PER_HOUR'; 0055 const MILLIMOLE_PER_MINUTE = 'MILLIMOLE_PER_MINUTE'; 0056 const MILLIMOLE_PER_SECOND = 'MILLIMOLE_PER_SECOND'; 0057 const MOLE_PER_DAY = 'MOLE_PER_DAY'; 0058 const MOLE_PER_HOUR = 'MOLE_PER_HOUR'; 0059 const MOLE_PER_MINUTE = 'MOLE_PER_MINUTE'; 0060 const MOLE_PER_SECOND = 'MOLE_PER_SECOND'; 0061 0062 /** 0063 * Calculations for all flow mole units 0064 * 0065 * @var array 0066 */ 0067 protected $_units = array( 0068 'CENTIMOLE_PER_DAY' => array(array('' => '0.01', '/' => '86400'), 'cmol/day'), 0069 'CENTIMOLE_PER_HOUR' => array(array('' => '0.01', '/' => '3600'), 'cmol/h'), 0070 'CENTIMOLE_PER_MINUTE' => array(array('' => '0.01', '/' => '60'), 'cmol/m'), 0071 'CENTIMOLE_PER_SECOND' => array('0.01', 'cmol/s'), 0072 'MEGAMOLE_PER_DAY' => array(array('' => '1000000', '/' => '86400'), 'Mmol/day'), 0073 'MEGAMOLE_PER_HOUR' => array(array('' => '1000000', '/' => '3600'), 'Mmol/h'), 0074 'MEGAMOLE_PER_MINUTE' => array(array('' => '1000000', '/' => '60'), 'Mmol/m'), 0075 'MEGAMOLE_PER_SECOND' => array('1000000', 'Mmol/s'), 0076 'MICROMOLE_PER_DAY' => array(array('' => '0.000001', '/' => '86400'), 'µmol/day'), 0077 'MICROMOLE_PER_HOUR' => array(array('' => '0.000001', '/' => '3600'), 'µmol/h'), 0078 'MICROMOLE_PER_MINUTE' => array(array('' => '0.000001', '/' => '60'), 'µmol/m'), 0079 'MICROMOLE_PER_SECOND' => array('0.000001', 'µmol/s'), 0080 'MILLIMOLE_PER_DAY' => array(array('' => '0.001', '/' => '86400'), 'mmol/day'), 0081 'MILLIMOLE_PER_HOUR' => array(array('' => '0.001', '/' => '3600'), 'mmol/h'), 0082 'MILLIMOLE_PER_MINUTE' => array(array('' => '0.001', '/' => '60'), 'mmol/m'), 0083 'MILLIMOLE_PER_SECOND' => array('0.001', 'mmol/s'), 0084 'MOLE_PER_DAY' => array(array('' => '1', '/' => '86400'), 'mol/day'), 0085 'MOLE_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'mol/h'), 0086 'MOLE_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'mol/m'), 0087 'MOLE_PER_SECOND' => array('1', 'mol/s'), 0088 'STANDARD' => 'MOLE_PER_SECOND' 0089 ); 0090 }