20 lines
406 B
PHP
20 lines
406 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\PropertyModifier;
|
|
|
|
use Icinga\Module\Director\Hook\PropertyModifierHook;
|
|
use Icinga\Module\Director\Web\Form\QuickForm;
|
|
|
|
class PropertyModifierFromLatin1 extends PropertyModifierHook
|
|
{
|
|
public function getName()
|
|
{
|
|
return 'Convert a latin1 string to utf8';
|
|
}
|
|
|
|
public function transform($value)
|
|
{
|
|
return utf8_encode($value);
|
|
}
|
|
}
|