verify: Use the \verify instead of $this for non static methods
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3559 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
22
verify.php
22
verify.php
@@ -15,7 +15,7 @@ class verify
|
||||
*/
|
||||
public function is_ip ($val)
|
||||
{
|
||||
return $this->staticIs_ip ($val);
|
||||
return \verify::staticIs_ip ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid IPv4 in static mode
|
||||
@@ -35,7 +35,7 @@ class verify
|
||||
*/
|
||||
public function is_ipv4 ($val)
|
||||
{
|
||||
return $this->staticIs_ipv4 ($val);
|
||||
return \verify::staticIs_ipv4 ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid IPv4 in static mode
|
||||
@@ -55,7 +55,7 @@ class verify
|
||||
*/
|
||||
public function is_ipv6 ($val)
|
||||
{
|
||||
return $this->staticIs_ipv6 ($val);
|
||||
return \verify::staticIs_ipv6 ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid IPv6 in static mode
|
||||
@@ -75,7 +75,7 @@ class verify
|
||||
*/
|
||||
public function is_hostname ($val)
|
||||
{
|
||||
return $this->staticIs_hostname ($val);
|
||||
return \verify::staticIs_hostname ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid hostname (without domain)
|
||||
@@ -103,7 +103,7 @@ class verify
|
||||
*/
|
||||
public function is_domain ($val)
|
||||
{
|
||||
return $this->staticIs_domain ($val);
|
||||
return \verify::staticIs_domain ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid domain (without hostname) in static mode
|
||||
@@ -131,7 +131,7 @@ class verify
|
||||
*/
|
||||
public function is_FQDN ($val)
|
||||
{
|
||||
return $this->staticIs_FQDN ($val);
|
||||
return \verify::staticIs_FQDN ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid FQDN in static mode
|
||||
@@ -142,7 +142,7 @@ class verify
|
||||
{
|
||||
if (strlen ($val) < 2 || strlen ($val) > 255)
|
||||
return false;
|
||||
if ($this->is_ip ($val))
|
||||
if (\verify::is_ip ($val))
|
||||
return false;
|
||||
if (strspn ($val, "abcdefghijklmnopqrstuvwxyz".
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".
|
||||
@@ -164,7 +164,7 @@ class verify
|
||||
@param string $val The date to check */
|
||||
public function is_datetimeSQL ($val)
|
||||
{
|
||||
return $this->staticIs_datetimeSQL ($val);
|
||||
return \verify::staticIs_datetimeSQL ($val);
|
||||
}
|
||||
|
||||
/** Check if $val is a valid date in static mode
|
||||
@@ -197,7 +197,7 @@ class verify
|
||||
*/
|
||||
public function is_integer ($val)
|
||||
{
|
||||
return $this->staticIs_integer ($val);
|
||||
return \verify::staticIs_integer ($val);
|
||||
}
|
||||
|
||||
/** Return true if the provided value is an integer in decimal (not octal)
|
||||
@@ -222,7 +222,7 @@ class verify
|
||||
*/
|
||||
public function is_email ($val)
|
||||
{
|
||||
return $this->staticIs_email ($val);
|
||||
return \verify::staticIs_email ($val);
|
||||
}
|
||||
|
||||
/** Return true if the provided value is a valid email address in static mode
|
||||
@@ -243,7 +243,7 @@ class verify
|
||||
*/
|
||||
public function is_URL ($val)
|
||||
{
|
||||
return $this->staticIs_URL ($val);
|
||||
return \verify::staticIs_URL ($val);
|
||||
}
|
||||
|
||||
/** Return true if the provided value is a valid URL in static mode
|
||||
|
||||
Reference in New Issue
Block a user