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 capacitance conversions 0030 * 0031 * @category Zend 0032 * @package Zend_Measure 0033 * @subpackage Zend_Measure_Capacitance 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_Capacitance extends Zend_Measure_Abstract 0038 { 0039 const STANDARD = 'FARAD'; 0040 0041 const ABFARAD = 'ABFARAD'; 0042 const AMPERE_PER_SECOND_VOLT = 'AMPERE_PER_SECOND_VOLT'; 0043 const CENTIFARAD = 'CENTIFARAD'; 0044 const COULOMB_PER_VOLT = 'COULOMB_PER_VOLT'; 0045 const DECIFARAD = 'DECIFARAD'; 0046 const DEKAFARAD = 'DEKAFARAD'; 0047 const ELECTROMAGNETIC_UNIT = 'ELECTROMAGNETIC_UNIT'; 0048 const ELECTROSTATIC_UNIT = 'ELECTROSTATIC_UNIT'; 0049 const FARAD = 'FARAD'; 0050 const FARAD_INTERNATIONAL = 'FARAD_INTERNATIONAL'; 0051 const GAUSSIAN = 'GAUSSIAN'; 0052 const GIGAFARAD = 'GIGAFARAD'; 0053 const HECTOFARAD = 'HECTOFARAD'; 0054 const JAR = 'JAR'; 0055 const KILOFARAD = 'KILOFARAD'; 0056 const MEGAFARAD = 'MEGAFARAD'; 0057 const MICROFARAD = 'MICROFARAD'; 0058 const MILLIFARAD = 'MILLIFARAD'; 0059 const NANOFARAD = 'NANOFARAD'; 0060 const PICOFARAD = 'PICOFARAD'; 0061 const PUFF = 'PUFF'; 0062 const SECOND_PER_OHM = 'SECOND_PER_OHM'; 0063 const STATFARAD = 'STATFARAD'; 0064 const TERAFARAD = 'TERAFARAD'; 0065 0066 /** 0067 * Calculations for all capacitance units 0068 * 0069 * @var array 0070 */ 0071 protected $_units = array( 0072 'ABFARAD' => array('1.0e+9', 'abfarad'), 0073 'AMPERE_PER_SECOND_VOLT' => array('1', 'A/sV'), 0074 'CENTIFARAD' => array('0.01', 'cF'), 0075 'COULOMB_PER_VOLT' => array('1', 'C/V'), 0076 'DECIFARAD' => array('0.1', 'dF'), 0077 'DEKAFARAD' => array('10', 'daF'), 0078 'ELECTROMAGNETIC_UNIT' => array('1.0e+9', 'capacity emu'), 0079 'ELECTROSTATIC_UNIT' => array('1.11265e-12', 'capacity esu'), 0080 'FARAD' => array('1', 'F'), 0081 'FARAD_INTERNATIONAL' => array('0.99951', 'F'), 0082 'GAUSSIAN' => array('1.11265e-12', 'G'), 0083 'GIGAFARAD' => array('1.0e+9', 'GF'), 0084 'HECTOFARAD' => array('100', 'hF'), 0085 'JAR' => array('1.11265e-9', 'jar'), 0086 'KILOFARAD' => array('1000', 'kF'), 0087 'MEGAFARAD' => array('1000000', 'MF'), 0088 'MICROFARAD' => array('0.000001', 'µF'), 0089 'MILLIFARAD' => array('0.001', 'mF'), 0090 'NANOFARAD' => array('1.0e-9', 'nF'), 0091 'PICOFARAD' => array('1.0e-12', 'pF'), 0092 'PUFF' => array('1.0e-12', 'pF'), 0093 'SECOND_PER_OHM' => array('1', 's/Ohm'), 0094 'STATFARAD' => array('1.11265e-12', 'statfarad'), 0095 'TERAFARAD' => array('1.0e+12', 'TF'), 0096 'STANDARD' => 'FARAD' 0097 ); 0098 }