summaryrefslogtreecommitdiffstats
path: root/library/Director/PropertyModifier/PropertyModifierURLEncode.php
blob: 34f358813014efd3973f240a329e421bbc55fd36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Icinga\Module\Director\PropertyModifier;

use Icinga\Module\Director\Hook\PropertyModifierHook;

class PropertyModifierURLEncode extends PropertyModifierHook
{
    public function getName()
    {
        return 'URL-encode a string';
    }


    public function transform($value)
    {
        return rawurlencode($value);
    }
}