PHPDoc support : correct the erroneous entries

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1463 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-06-16 13:46:39 +00:00
parent 679fa2c24a
commit 027cbccdcf
3 changed files with 34 additions and 16 deletions

View File

@@ -10,7 +10,8 @@ class verify
// NETWORK //
/////////////////
/** Check if $val is a valid IPv4
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The IP to test */
public function is_ip ($val)
{
if (filter_var ($val, FILTER_VALIDATE_IP))
@@ -19,7 +20,8 @@ class verify
}
/** Check if $val is a valid IPv4
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The IPv4 to test */
public function is_ipv4 ($val)
{
if (filter_var ($val, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
@@ -28,7 +30,8 @@ class verify
}
/** Check if $val is a valid IPv6
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The IPv to test */
public function is_ipv6 ($val)
{
if (filter_var ($val, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
@@ -37,7 +40,8 @@ class verify
}
/** Check if $val is a valid hostname (without domain)
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The hostname to check */
public function is_hostname ($val)
{
if (strlen ($val) < 2 || strlen ($val) > 128)
@@ -54,7 +58,8 @@ class verify
}
/** Check if $val is a valid domain (without hostname)
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The domain to check */
public function is_domain ($val)
{
if (strlen ($val) < 2 || strlen ($val) > 128)
@@ -71,7 +76,8 @@ class verify
}
/** Check if $val is a valid FQDN
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The FQDN to check */
public function is_FQDN ($val)
{
if (strlen ($val) < 2 || strlen ($val) > 255)
@@ -94,7 +100,8 @@ class verify
///////////////
/** Check if $val is a valid date
A valid date is 2014-03-20 12:27:34
Return TRUE or FALSE */
Return TRUE or FALSE
@param string $val The date to check */
public function is_datetimeSQL ($val)
{
if (strlen ($val) !== 19)
@@ -114,7 +121,8 @@ class verify
/////////////////
// NUMBERS //
/////////////////
/** Return TRUE if the provided value is an integer in decimal (not octal) */
/** Return TRUE if the provided value is an integer in decimal (not octal)
@param string $val The Integer val to check */
public function is_integer ($val)
{
if (strspn ($val, "0123456789") !== strlen ($val))