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

Validate



Extends: FilterInterface


Validate PHP Methods

captcha(string $verificationCode, int $verificationTime) v5

Checks if captcha is valid
PARAMETERS:
$verificationCode = string, Verification code content
$verificationTime = int, Verification time as timestamp
RETURN VALUE:
bool = True if the captcha is valid, false otherwise

captchaCode(string $verificationCode, int $fcImage) v5

Checks if verification code = the image captcha
PARAMETERS:
$verificationCode = string, Verification code content
$fcImage = int, Image number
RETURN VALUE:
bool = True if the verification code = the image captcha, false otherwise

curlSafe(string $url, \WMT\Settings\Core $settingsCore) v5

Checks if CURL is safe
PARAMETERS:
$url = string, CURL URL
$settingsCore = settingCore object
RETURN VALUE:
bool = True if the CURL is safe, false otherwise

domainName(string $domainName) v5

Checks if the domain name is valid
PARAMETERS:
$domainName = string, Domain name (EX:SITENAME.COM)
RETURN VALUE:
bool = True if the domain is a valid one, false otherwise

email(string $email) v5

Checks if $email is a valid email address
PARAMETERS:
$email = string, email address
RETURN VALUE:
bool = True if the email address is valid, false otherwise

intRange(&$intValue, int $beginRange, int $endRange) v5

Checks if a number is between 2 other numbers
PARAMETERS:
$intValue = int, The number which you want to check
$beginRange = int, The range start number
$endRange = int, The range end number
RETURN VALUE:
bool = True if the number is between the start and the end range, false otherwise

intUnsigned($intValue) v5

Checks if the integer value is unsigned
PARAMETERS:
$intValue = int, Integer value which you want to check
RETURN VALUE:
bool = True if the value is unsigned, false otherwise

ip(string $ip) v5

Checks if $ip is a valid IP address
PARAMETERS:
$ip = string, IP Address
RETURN VALUE:
bool = True if the IP is valid, false otherwise

isImage(string $fileName) v5

Checks if the $fileName is a valid image
PARAMETERS:
$fileName = string, Image file name (path)
RETURN VALUE:
bool = True if the image is valid, false otherwise

isJPG(string $fileName) v5

Checks if the image extension is JPG
PARAMETERS:
$fileName = string, Image file name (path)
RETURN VALUE:
bool = True if the file is a valid JPG image, false otherwise

isProxy() v5

Checks if the connection is stanlished using a proxy
PARAMETERS:
NONE
RETURN VALUE:
MIXED = Header array if the connection is stablished using a proxy, false otherwise

isRealEmail(string $email) v5

Checks if an email address is a real email
PARAMETERS:
$email = string, Email address
RETURN VALUE:
bool = True if the email is a real email address, false otherwise

isRealName(string $name) v5

Checks if the passed name is a valid/real name
PARAMETERS:
$name = string, The name which you want to check its validation
RETURN VALUE:
bool = True if the name is a real person name, false otherwise

password(string $valPassword, \WMT\Settings\Core $settingsCore) v5

Checks if a password is valid
PARAMETERS:
$valPassword = string, Password content
$settingsCore = setting core object
RETURN VALUE:
int = 0 if password length is less than the required lendth | -1 if password doesn't have lowercase character and lowercase is required | -2 if password doesn't have uppercase character and uppercase is required | -3 if password doesn't have number character and number is required | -4 if password doesn't have a special character character and special characters are required | true if password is valid

payPal(bool $testModeOn = false) v5

Process paypal IPN and get the payment response
PARAMETERS:
$testModeOn = bool, True to turn test mode(sandbox) on, false to turn off
RETURN VALUE:
string = Paypal payment IPN response

phone(string $phone) v5

Checks if a phone number is valid
PARAMETERS:
$phone = string, Phone number
RETURN VALUE:
bool = True if phone number is valid, false otherwise

text(string $text) v5

Checks if text is valid (doesn't have any HTML tags)
PARAMETERS:
$text = string, text content
RETURN VALUE:
bool = True if the text is valid, false otherwise

url(string $url) v5

Checks if a URL is a valid URL
PARAMETERS:
$url = string, URL
RETURN VALUE:
bool = True if the url is valid, false otherwise

Validate PHP Variables

🔎︎ %l4610%




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


Reseller: WMT
|
Login
(502) 225-3237