NotificationTarget::formatURL PHP Méthode

formatURL() public méthode

public formatURL ( $usertype, $redirect )
$usertype
$redirect
    function formatURL($usertype, $redirect)
    {
        global $CFG_GLPI;
        switch ($usertype) {
            case self::EXTERNAL_USER:
                return urldecode($CFG_GLPI["url_base"] . "/index.php?redirect={$redirect}");
            case self::ANONYMOUS_USER:
                // No URL
                return '';
            case self::GLPI_USER:
                return urldecode($CFG_GLPI["url_base"] . "/index.php?redirect={$redirect}&noAUTO=1");
        }
    }