Esempio n. 1
0
 public function validate_pmo_level(Module_PM $module, $arg)
 {
     return GWF_Validator::validateInt($module, 'pmo_level', $arg);
 }
Esempio n. 2
0
 public function validate_level($m, $arg)
 {
     return GWF_Validator::validateInt($m, 'level', $arg, '-2000000000', '2000000000', true);
 }
Esempio n. 3
0
 public function validate_level(Module_Download $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'level', $arg, 0, 3999999999, '0');
 }
Esempio n. 4
0
 public function validate_wf_score(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'wf_score', $arg, 0, 1000000, true);
 }
Esempio n. 5
0
 public function validate_site_powarg(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'site_powarg', $arg, 0, 10000, true);
 }
Esempio n. 6
0
 public function validate_level(Module_Votes $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'level', $arg, 0, PHP_INT_MAX, '0');
 }
Esempio n. 7
0
 public function validate_fun(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'fun', $arg, 0, 10, true);
 }
Esempio n. 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);
 }
Esempio n. 9
0
 public function validate_bpm(Module_Slaytags $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'bpm', $arg, 0, 255);
 }
Esempio n. 10
0
 public function validate_port(Module_WeChall $m, $arg)
 {
     return GWF_Validator::validateInt($m, 'port', $arg, 1, 1024, true);
 }
Esempio n. 11
0
 public static function validate_minlevel(Module_Usergroups $m, $v)
 {
     return GWF_Validator::validateInt($m, 'minlevel', $v, 0, PHP_INT_MAX, true);
 }