mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
506a78491f
commit
25732aaf3e
@ -24,6 +24,7 @@ next (will be 1.8.0)
|
|||||||
### Import and Sync
|
### Import and Sync
|
||||||
* FEATURE: allow to define update-only Sync Rules (#2059)
|
* FEATURE: allow to define update-only Sync Rules (#2059)
|
||||||
* FEATURE: New Property Modifier: ListToObject (#2062)
|
* FEATURE: New Property Modifier: ListToObject (#2062)
|
||||||
|
* FEATURE: Property Modifier: convert binary UUID to HEX presentation (#2138)
|
||||||
* FEATURE: Import Sources now allow to download previewed data as JSON (#2096)
|
* FEATURE: Import Sources now allow to download previewed data as JSON (#2096)
|
||||||
* FIX: LDAP Import is now able to paginate limited results (#2019)
|
* FIX: LDAP Import is now able to paginate limited results (#2019)
|
||||||
|
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Icinga\Module\Director\PropertyModifier;
|
||||||
|
|
||||||
|
use Icinga\Module\Director\Hook\PropertyModifierHook;
|
||||||
|
use Ramsey\Uuid\Uuid;
|
||||||
|
|
||||||
|
class PropertyModifierUuidBinToHex extends PropertyModifierHook
|
||||||
|
{
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
return mt('director', 'UUID: from binary to hex');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function transform($value)
|
||||||
|
{
|
||||||
|
return Uuid::fromBytes($value)->toString();
|
||||||
|
}
|
||||||
|
}
|
@ -45,6 +45,7 @@ use Icinga\Module\Director\PropertyModifier\PropertyModifierToInt;
|
|||||||
use Icinga\Module\Director\PropertyModifier\PropertyModifierUppercase;
|
use Icinga\Module\Director\PropertyModifier\PropertyModifierUppercase;
|
||||||
use Icinga\Module\Director\PropertyModifier\PropertyModifierUpperCaseFirst;
|
use Icinga\Module\Director\PropertyModifier\PropertyModifierUpperCaseFirst;
|
||||||
use Icinga\Module\Director\PropertyModifier\PropertyModifierURLEncode;
|
use Icinga\Module\Director\PropertyModifier\PropertyModifierURLEncode;
|
||||||
|
use Icinga\Module\Director\PropertyModifier\PropertyModifierUuidBinToHex;
|
||||||
use Icinga\Module\Director\PropertyModifier\PropertyModifierXlsNumericIp;
|
use Icinga\Module\Director\PropertyModifier\PropertyModifierXlsNumericIp;
|
||||||
use Icinga\Module\Director\ProvidedHook\CubeLinks;
|
use Icinga\Module\Director\ProvidedHook\CubeLinks;
|
||||||
|
|
||||||
@ -105,6 +106,7 @@ $directorHooks = [
|
|||||||
PropertyModifierUppercase::class,
|
PropertyModifierUppercase::class,
|
||||||
PropertyModifierUpperCaseFirst::class,
|
PropertyModifierUpperCaseFirst::class,
|
||||||
PropertyModifierURLEncode::class,
|
PropertyModifierURLEncode::class,
|
||||||
|
PropertyModifierUuidBinToHex::class,
|
||||||
PropertyModifierXlsNumericIp::class,
|
PropertyModifierXlsNumericIp::class,
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user