defender::get_current_field_session PHP Method

get_current_field_session() static public method

Return the current document field session or sessions Use for debug purposes
static public get_current_field_session ( string $input_name = "" ) : string
$input_name string
return string
    static function get_current_field_session($input_name = "")
    {
        if ($input_name && isset($_SESSION['form_fields'][self::pageHash()][$input_name])) {
            return $_SESSION['form_fields'][self::pageHash()][$input_name];
        } else {
            if ($input_name) {
                return "The session for this field is not found";
            } else {
                return $_SESSION['form_fields'][self::pageHash()];
            }
        }
    }