類別IntRule的繼承圖:

公開方法(Public Methods) | |
| IntRule () | |
| validate ($value) | |
定義在 intrule.class.php 檔案之第 14 行.
|
|
Initialize the rule 定義在 intrule.class.php 檔案之第 19 行. 00020 { 00021 $this->RegExpRule(INT_RULE_REG_EXP, false); 00022 }
|
|
|
Returns true if the given value is an integer, or false otherwise. In case of error it will also set the error code to ERROR_RULE_INT_FORMAT_WRONG 依據RegExpRule重新實作. 定義在 intrule.class.php 檔案之第 28 行. 00029 { 00030 if (parent::validate($value)) 00031 { 00032 $this->_setError(false); 00033 return true; 00034 } 00035 else 00036 { 00037 $this->_setError(ERROR_RULE_INT_FORMAT_WRONG); 00038 return false; 00039 } 00040 }
|