AbstractInput
AbstractInput PHP Methods
bool(string $variableName) v5
filter validates value as a boolean option
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
RETURN VALUE:
bool = True if the variable is a valid boolean value, false otherwise convertFileValue(string $fileValue) v5
converts a file value using base64 decoder
PARAMETERS:
$fileValue = string, File value
RETURN VALUE:
string = File value after converting it using base64 decoder email(string $variableName) v5
Filter and validate an email address
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
RETURN VALUE:
string = Email address after filtering fileValue() v5
Gets a file value for an input
PARAMETERS:
NONE
RETURN VALUE:
string = File value filterInput(string $variableName, $filterVar) v5
Filter an input value using different filter types
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
$filterVar = string, PHP filter variable method
RETURN VALUE:
mixed = The value after filtering float(string $variableName, int $invalidAction = -1) v5
Filter and validate a float variable
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
$invalidAction = int, 0 = Return 0; 1 = wmtError; 2 = die(); 3 = return null; 4 = return 1
RETURN VALUE:
string = the value after validation getInput(string $variableName, int $invalidAction = -1, $filterType = FILTER_VALIDATE_INT) v5
Filter and validate a variable using php filtering
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
$invalidAction = int, 0 = Return 0; 1 = wmtError; 2 = die(); 3 = return null; 4 = return 1
$filterType = string, PHP filter type
RETURN VALUE:
string = the value after filtering html(string $variableName) v5
Get's html, filter it to make it safe for embed
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
RETURN VALUE:
string = HTML content after filtering int(string $variableName, int $invalidAction = -1) v5
Filter and validate an integer variable
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
$invalidAction = int, 0 = Return 0; 1 = wmtError; 2 = die(); 3 = return null; 4 = return 1
RETURN VALUE:
string = the value after validation ip(string $variableName) v5
Filter and validate an IP address
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
RETURN VALUE:
string = IP address after filtering text(string $variableName) v5
Get's text, trims it and strips tags (FILTER_SANITIZE_STRING)
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
RETURN VALUE:
string = the text/content after filtering url(string $variableName) v5
filter validates a URL variable
PARAMETERS:
$variableName = string, The name of the variable to $_GET the value of
RETURN VALUE:
string = The url after filtering __construct(\WMT\Filter\Sanitize $sanitize) v5
Initialize AbstractInput object for filtering content
PARAMETERS:
$sanitize = object
RETURN VALUE:
VOIDAbstractInput PHP Variables
$inputType v5
$invalidAction v5
$sanitize v5