Changeset 13730
- Timestamp:
- 2007/05/29 23:26:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/test/adachi/SC_Validator.php
r13729 r13730 1 1 <?php 2 /** 3 * validation¥¯¥é¥¹ 4 */ 2 5 class SC_Validator { 3 6 var $_error; 4 7 var $_errorMessage; 5 8 6 function SC_Validator(){ 7 } 8 9 /** 10 * 11 * 12 * @param string $method ¼Â»Ü¤¹¤ëvalidation̾ 13 * @param mixed $args validation¤ËɬÍפʰú¿ô 14 * 15 * @return object SC_Validator_$method 16 * @example $objValidator = SC_Validator::factory('MAX', 20); 17 */ 9 18 function factory($method, $args = null){ 10 19 $class = 'SC_Validator_' . $method; … … 14 23 } 15 24 25 /** 26 * 27 * 28 * @param object SC_Param 29 * 30 * @return void 31 */ 16 32 function validate($objParam){} 17 33 … … 21 37 22 38 function is_ok(){ 23 $bool = true; ;39 $bool = true; 24 40 if ($this->is_error()) { $bool = false; } 25 41 … … 27 43 } 28 44 45 29 46 function getErrorMessage(){} 30 47 }
Note: See TracChangeset
for help on using the changeset viewer.