7
* This source file is subject to the new BSD license that is bundled
8
* with this package in the file LICENSE.txt.
9
* It is also available through the world-wide-web at this URL:
10
* http://framework.zend.com/license/new-bsd
11
* If you did not receive a copy of the license and are unable to
12
* obtain it through the world-wide-web, please send an email
13
* to license@zend.com so we can send you a copy immediately.
16
* @package Zend_Measure
17
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18
* @license http://framework.zend.com/license/new-bsd New BSD License
19
* @version $Id: Illumination.php 9508 2008-05-23 10:56:41Z thomas $
23
* Implement needed classes
25
require_once 'Zend/Measure/Exception.php';
26
require_once 'Zend/Measure/Abstract.php';
27
require_once 'Zend/Locale.php';
30
* Class for handling illumination conversions
33
* @package Zend_Measure
34
* @subpackage Zend_Measure_Illumination
35
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
36
* @license http://framework.zend.com/license/new-bsd New BSD License
38
class Zend_Measure_Illumination extends Zend_Measure_Abstract
40
const STANDARD = 'LUX';
42
const FOOTCANDLE = 'FOOTCANDLE';
43
const KILOLUX = 'KILOLUX';
44
const LUMEN_PER_SQUARE_CENTIMETER = 'LUMEN_PER_SQUARE_CENTIMETER';
45
const LUMEN_PER_SQUARE_FOOT = 'LUMEN_PER_SQUARE_FOOT';
46
const LUMEN_PER_SQUARE_INCH = 'LUMEN_PER_SQUARE_INCH';
47
const LUMEN_PER_SQUARE_METER = 'LUMEN_PER_SQUARE_METER';
49
const METERCANDLE = 'METERCANDLE';
50
const MILLIPHOT = 'MILLIPHOT';
55
* Calculations for all illumination units
59
protected $_units = array(
60
'FOOTCANDLE' => array('10.7639104', 'fc'),
61
'KILOLUX' => array('1000', 'klx'),
62
'LUMEN_PER_SQUARE_CENTIMETER' => array('10000', 'lm/cm²'),
63
'LUMEN_PER_SQUARE_FOOT' => array('10.7639104', 'lm/ft²'),
64
'LUMEN_PER_SQUARE_INCH' => array('1550.0030976', 'lm/in²'),
65
'LUMEN_PER_SQUARE_METER' => array('1', 'lm/m²'),
66
'LUX' => array('1', 'lx'),
67
'METERCANDLE' => array('1', 'metercandle'),
68
'MILLIPHOT' => array('10', 'mph'),
69
'NOX' => array('0.001', 'nox'),
70
'PHOT' => array('10000', 'ph'),