Web Marketing Tool
Reseller
WMT .
Server
Referred By: Web Marketing Tool
Login

Server



Extends: AbstractInput


Server PHP Methods

allStats() v5

gets an array (associative array) of visit stats
PARAMETERS:
NONE
RETURN VALUE:
array = an array (associative array) of visit stats

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

browser() v5

Gets browser stats as an array
PARAMETERS:
NONE
RETURN VALUE:
array = browser stats as an array

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

has(string $variableName) v5

Checks if a variable name exists in $_SERVER super global
PARAMETERS:
$variableName = string, Variable name to check
RETURN VALUE:
bool = True if the variable exists, false otherwise

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

isMobile() v5

Checks if the device used is a mobile
PARAMETERS:
NONE
RETURN VALUE:
bool = True if the device used is a mobile, false otherwise

isTablet() v5

Checks if the device used is a tablet
PARAMETERS:
NONE
RETURN VALUE:
bool = True if the device is a tablet, false otherwise

myIP() v5

Gets my IP address
PARAMETERS:
NONE
RETURN VALUE:
string = My IP address

os() v5

Gets operating system stats
PARAMETERS:
NONE
RETURN VALUE:
string = Operating system stats (user agent stats)

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:
VOID

Server PHP Variables

$deviceType v5

Default value = -1

$inputType v5

$inputType v5

Default value = INPUT_SERVER

$invalidAction v5

$sanitize v5




DMCA.com Protection Status Authorize.net
Valid HTML! Valid CSS!


Reseller: WMT
|
Login
(502) 225-3237