Ignore:
Timestamp:
2007/05/29 21:07:11 (19 years ago)
Author:
adati
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.