mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-08-23 02:28:15 +02:00
73 lines
2.7 KiB
PHP
73 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* 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 license@zend.com so we can send you a copy immediately.
|
|
*
|
|
* @category Zend
|
|
* @package Zend_Measure
|
|
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
* @version $Id$
|
|
*/
|
|
|
|
/**
|
|
* Implement needed classes
|
|
*/
|
|
require_once 'Zend/Measure/Abstract.php';
|
|
require_once 'Zend/Locale.php';
|
|
|
|
/**
|
|
* Class for handling illumination conversions
|
|
*
|
|
* @category Zend
|
|
* @package Zend_Measure
|
|
* @subpackage Zend_Measure_Illumination
|
|
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
*/
|
|
class Zend_Measure_Illumination extends Zend_Measure_Abstract
|
|
{
|
|
public const STANDARD = 'LUX';
|
|
|
|
public const FOOTCANDLE = 'FOOTCANDLE';
|
|
public const KILOLUX = 'KILOLUX';
|
|
public const LUMEN_PER_SQUARE_CENTIMETER = 'LUMEN_PER_SQUARE_CENTIMETER';
|
|
public const LUMEN_PER_SQUARE_FOOT = 'LUMEN_PER_SQUARE_FOOT';
|
|
public const LUMEN_PER_SQUARE_INCH = 'LUMEN_PER_SQUARE_INCH';
|
|
public const LUMEN_PER_SQUARE_METER = 'LUMEN_PER_SQUARE_METER';
|
|
public const LUX = 'LUX';
|
|
public const METERCANDLE = 'METERCANDLE';
|
|
public const MILLIPHOT = 'MILLIPHOT';
|
|
public const NOX = 'NOX';
|
|
public const PHOT = 'PHOT';
|
|
|
|
/**
|
|
* Calculations for all illumination units
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $_units = [
|
|
'FOOTCANDLE' => ['10.7639104', 'fc'],
|
|
'KILOLUX' => ['1000', 'klx'],
|
|
'LUMEN_PER_SQUARE_CENTIMETER' => ['10000', 'lm/cm²'],
|
|
'LUMEN_PER_SQUARE_FOOT' => ['10.7639104', 'lm/ft²'],
|
|
'LUMEN_PER_SQUARE_INCH' => ['1550.0030976', 'lm/in²'],
|
|
'LUMEN_PER_SQUARE_METER' => ['1', 'lm/m²'],
|
|
'LUX' => ['1', 'lx'],
|
|
'METERCANDLE' => ['1', 'metercandle'],
|
|
'MILLIPHOT' => ['10', 'mph'],
|
|
'NOX' => ['0.001', 'nox'],
|
|
'PHOT' => ['10000', 'ph'],
|
|
'STANDARD' => 'LUX'
|
|
];
|
|
}
|