Beispiel #1
0
 public function validate_pmo_level(Module_PM $module, $arg)
 {
     return GWF_Validator::validateInt($module, 'pmo_level', $arg);
 }
Beispiel #2
0
 public function validate_level($m, $arg)
 {
     return GWF_Validator::validateInt($m, 'level', $arg, '-2000000000', '2000000000', true);
 }
Beispiel #3
0
 public function validate_level(Module_Download $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'level', $arg, 0, 3999999999, '0');
 }
Beispiel #4
0
 public function validate_wf_score(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'wf_score', $arg, 0, 1000000, true);
 }
Beispiel #5
0
 public function validate_site_powarg(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'site_powarg', $arg, 0, 10000, true);
 }
Beispiel #6
0
 public function validate_level(Module_Votes $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'level', $arg, 0, PHP_INT_MAX, '0');
 }
Beispiel #7
0
 public function validate_fun(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'fun', $arg, 0, 10, true);
 }
Beispiel #8
0
 private function validateNumber(Module_Profile $m, $key, $arg, $max)
 {
     $arg = str_replace(' ', '', $arg);
     return GWF_Validator::validateInt($m, $key, $arg, '0', bcpow('10', "{$max}"), true);
 }
Beispiel #9
0
 public function validate_bpm(Module_Slaytags $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'bpm', $arg, 0, 255);
 }
Beispiel #10
0
 public function validate_port(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'port', $arg, 1, 1024, true);
 }
Beispiel #11
0
 public static function validate_minlevel(Module_Usergroups $m, $v)
 {
     return GWF_Validator::validateInt($m, 'minlevel', $v, 0, PHP_INT_MAX, true);
 }