integervalidator.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 34 行
PHP
34 行
<?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 + =
减小字号Ctrl + -
显示快捷键?