Changeset 13729 for branches/dev
- Timestamp:
- 2007/05/29 21:07:11 (19 years ago)
- Location:
- branches/dev/html/test/adachi
- Files:
-
- 2 edited
-
SC_FormParamsManager.php (modified) (3 diffs)
-
SC_Validator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/test/adachi/SC_FormParamsManager.php
r13568 r13729 2 2 3 3 require_once('SC_Param.php'); 4 require_once('SC_Validat e.php')4 require_once('SC_Validator.php') 5 5 /** 6 6 * Form¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹ … … 72 72 foreach ($arrGroups as $group => $_value) { 73 73 // ´û¤Ë¥¨¥é¡¼¤¬¤¢¤ë¾ì¹ç¤Ïvalidation¤ò¹Ô¤ï¤Ê¤¤ 74 if (array_key_exists(array_keys($ value), $this->arrErr)) {74 if (array_key_exists(array_keys($_value), $this->arrErr)) { 75 75 continue; 76 76 } … … 86 86 return $this; 87 87 } 88 88 89 function getEM(){ 89 return $this->getErrorMessage() 90 return $this->getErrorMessage(); 90 91 } 91 92 -
branches/dev/html/test/adachi/SC_Validator.php
r13566 r13729 1 1 <?php 2 2 class SC_Validator { 3 var $_error; 4 var $_errorMessage; 5 6 function SC_Validator(){ 7 } 8 9 function factory($method, $args = null){ 10 $class = 'SC_Validator_' . $method; 11 require_once('SC_Validator/' . $method . '.php'); 12 13 return new $class($args); 14 } 15 16 function validate($objParam){} 17 18 function is_error(){ 19 return $this->_error; 20 } 21 22 function is_ok(){ 23 $bool = true;; 24 if ($this->is_error()) { $bool = false; } 25 26 return $bool; 27 } 28 29 function getErrorMessage(){} 30 } 3 31 ?>
Note: See TracChangeset
for help on using the changeset viewer.
