ad parent paramter to pis

This commit is contained in:
stubbfel
2013-10-16 11:16:46 +02:00
parent 4494bf9c5c
commit 9f263bc454
5 changed files with 70 additions and 11 deletions

View File

@@ -54,6 +54,18 @@ class StringManager {
}
return FALSE;
}
/**
* Method if the string is in integor
* @param string $value
* @return boolean
*/
public static function validInt($value) {
if (!ctype_digit($value) || PHP_INT_MAX < $value) {
return FALSE;
}
return TRUE;
}
}