SwimmPair-Www v1.0
PHP Model of SwimmPair web application
Loading...
Searching...
No Matches
Sanitizer Class Reference
Collaboration diagram for Sanitizer:
Collaboration graph

Static Public Member Functions

static getPostInt ($key)
 
static getPostString ($key)
 
static getGetInt ($key)
 
static getGetString ($key)
 

Detailed Description

Sanitizer class serves as anti XSS protection. It handles Int and String parameters provided via HTTP GET and HTTP POST.

Member Function Documentation

◆ getGetInt()

static Sanitizer::getGetInt (   $key)
static

Process Integer provided via. HTTP GET.

Parameters
int$key
Exceptions
RuntimeException
Returns
int

◆ getGetString()

static Sanitizer::getGetString (   $key)
static

Process String provided via. HTTP GET.

Parameters
string$key
Exceptions
RuntimeException
Returns
string

◆ getPostInt()

static Sanitizer::getPostInt (   $key)
static

Process Integer provided via. HTTP POST.

Parameters
int$key
Exceptions
RuntimeException
Returns
int

◆ getPostString()

static Sanitizer::getPostString (   $key)
static

Process String provided via. HTTP POST.

Parameters
string$key
Exceptions
RuntimeException
Returns
string

The documentation for this class was generated from the following file: