📄 integervalidator.class.php
字号:
<?php lt_include( PLOG_CLASS_PATH."class/data/validator/validator.class.php" ); /** * \ingroup Validator * * Checks that it is really an integer value. * * @see UIntRule */ class IntegerValidator extends Validator { /** * Constructor. * * @param signed Whether to allow signed integers or not. For compatibility reasons, * signed integers are not allowed by default. */ function IntegerValidator( $signed = false ) { $this->Validator(); if( $signed ) { lt_include( PLOG_CLASS_PATH."class/data/validator/rules/intrule.class.php" ); $this->addRule( new IntRule()); } else { lt_include( PLOG_CLASS_PATH."class/data/validator/rules/uintrule.class.php" ); $this->addRule( new UIntRule()); } } }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -