19 lines
449 B
PHP
19 lines
449 B
PHP
<?php
|
|
function aliases($fn, $property)
|
|
{
|
|
global $aliases;
|
|
logger(DEBUG, "Function aliases " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
|
|
if (array_key_exists($fn . "/" . $property, $aliases))
|
|
{
|
|
logger(DEBUG, "exists " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
|
|
return "/" . $aliases[$fn . "/" . $property];
|
|
}
|
|
}
|
|
|
|
$aliases = array(
|
|
"rdc/wc-sdb/eclairage/state_l1" => "sdb",
|
|
"rdc/wc-sdb/eclairage/state_l2" => "wc"
|
|
)
|
|
|
|
?>
|