Cookie
Cookie PHP Methods
add(string $cookieName, string $cookieValue, int $days) v5
Add new cookie(Set a cookie)
PARAMETERS:
$cookieName = string, Cookie name
$cookieValue = string, Cookie value
$days = int, number of valid days
RETURN VALUE:
void 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 getLanguage() v5
Get language ID
PARAMETERS:
NONE
RETURN VALUE:
int = langauge ID getMonitorHeight() v5
Get monitor height in px
PARAMETERS:
NONE
RETURN VALUE:
int = monitor height in px getMonitorWidth() v5
Get monitor width in px
PARAMETERS:
NONE
RETURN VALUE:
int = monitor width in px getVisitorID() v5
Get visitor ID
PARAMETERS:
NONE
RETURN VALUE:
int = Visitor ID has(string $variableName) v5
Checks if a cookie is set
PARAMETERS:
$variableName = string, Cookie name
RETURN VALUE:
bool = true if the cookie exists (set), 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 inputType v5
Default value = INPUT_COOKIE 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 removeVisitorID() v5
Remove visitor ID cookie
PARAMETERS:
NONE
RETURN VALUE:
void setLanguage(int $languageID) v5
Set language cookie
PARAMETERS:
$languageID = int, language ID
RETURN VALUE:
void settingSiteURL(string $siteURL) v5
Set site URL(domain name)
PARAMETERS:
$siteURL = string, Site URL (domain name)
RETURN VALUE:
void settingUseSSL(bool $useSSL = true) v5
Switch SSL on/off
PARAMETERS:
$useSSL = bool, True to allow using SSL, false otherwise
RETURN VALUE:
void setVisitorID(int $visitorID) v5
Set a visitor ID (cookie visitor ID)
PARAMETERS:
$visitorID = int, Visitor ID
RETURN VALUE:
void 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:
VOIDCookie PHP Variables
$inputType v5
$invalidAction v5
$sanitize v5