Falcon_Manager::unmangle_notification_data PHP Метод

unmangle_notification_data() публичный статический Метод

The reason PHP does this appears to be a holdover from legacy register_globals days. PHP variables can't have a . in them, so it converts these to legal variable names.
public static unmangle_notification_data ( $cap )
    public static function unmangle_notification_data($cap)
    {
        foreach (self::$registered_settings as $key => $opts) {
            $mangled = str_replace('.', '_', $key);
            if (isset($_POST[$mangled]) && !isset($_POST[$key])) {
                $_POST[$key] = $_POST[$mangled];
            }
        }
        return $cap;
    }