Changeset 13729 for branches/dev


Ignore:
Timestamp:
2007/05/29 21:07:11 (19 years ago)
Author:
adati
Message:
 
Location:
branches/dev/html/test/adachi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/test/adachi/SC_FormParamsManager.php

    r13568 r13729  
    22 
    33require_once('SC_Param.php'); 
    4 require_once('SC_Validate.php') 
     4require_once('SC_Validator.php') 
    55/** 
    66 * Form¥Ñ¥é¥á¡¼¥¿´ÉÍý¥¯¥é¥¹ 
     
    7272        foreach ($arrGroups as $group => $_value) { 
    7373            // ´û¤Ë¥¨¥é¡¼¤¬¤¢¤ë¾ì¹ç¤Ïvalidation¤ò¹Ô¤ï¤Ê¤¤ 
    74             if (array_key_exists(array_keys($value), $this->arrErr)) { 
     74            if (array_key_exists(array_keys($_value), $this->arrErr)) { 
    7575                continue; 
    7676            } 
     
    8686        return $this; 
    8787    } 
     88     
    8889    function getEM(){ 
    89         return $this->getErrorMessage() 
     90        return $this->getErrorMessage(); 
    9091    } 
    9192     
  • branches/dev/html/test/adachi/SC_Validator.php

    r13566 r13729  
    11<?php 
    2  
     2class 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} 
    331?> 
Note: See TracChangeset for help on using the changeset viewer.