File indexing completed on 2024-12-22 05:36:51
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 illumination conversions 0030 * 0031 * @category Zend 0032 * @package Zend_Measure 0033 * @subpackage Zend_Measure_Illumination 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_Illumination extends Zend_Measure_Abstract 0038 { 0039 const STANDARD = 'LUX'; 0040 0041 const FOOTCANDLE = 'FOOTCANDLE'; 0042 const KILOLUX = 'KILOLUX'; 0043 const LUMEN_PER_SQUARE_CENTIMETER = 'LUMEN_PER_SQUARE_CENTIMETER'; 0044 const LUMEN_PER_SQUARE_FOOT = 'LUMEN_PER_SQUARE_FOOT'; 0045 const LUMEN_PER_SQUARE_INCH = 'LUMEN_PER_SQUARE_INCH'; 0046 const LUMEN_PER_SQUARE_METER = 'LUMEN_PER_SQUARE_METER'; 0047 const LUX = 'LUX'; 0048 const METERCANDLE = 'METERCANDLE'; 0049 const MILLIPHOT = 'MILLIPHOT'; 0050 const NOX = 'NOX'; 0051 const PHOT = 'PHOT'; 0052 0053 /** 0054 * Calculations for all illumination units 0055 * 0056 * @var array 0057 */ 0058 protected $_units = array( 0059 'FOOTCANDLE' => array('10.7639104', 'fc'), 0060 'KILOLUX' => array('1000', 'klx'), 0061 'LUMEN_PER_SQUARE_CENTIMETER' => array('10000', 'lm/cm²'), 0062 'LUMEN_PER_SQUARE_FOOT' => array('10.7639104', 'lm/ft²'), 0063 'LUMEN_PER_SQUARE_INCH' => array('1550.0030976', 'lm/in²'), 0064 'LUMEN_PER_SQUARE_METER' => array('1', 'lm/m²'), 0065 'LUX' => array('1', 'lx'), 0066 'METERCANDLE' => array('1', 'metercandle'), 0067 'MILLIPHOT' => array('10', 'mph'), 0068 'NOX' => array('0.001', 'nox'), 0069 'PHOT' => array('10000', 'ph'), 0070 'STANDARD' => 'LUX' 0071 ); 0072 }