Login   Register  
PHP Classes
elePHPant
Icontem

File: Validation/DataType/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QValidation  >  Validation/DataType/index.php  >  Download  
File: Validation/DataType/index.php
Role: Auxiliary script
Content type: text/plain
Description: autoloader
Class: QValidation
Validate several types of value
Author: By
Last change:
Date: 5 years ago
Size: 514 bytes
 

Contents

Class file image Download
<?php

include_once(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."Validation.php");

function 
validateDataTypeAutoload($class) {
    if (
substr($class0strlen("Validation_DataType_")) === 'Validation_DataType_') {
        include 
dirname(__FILE__).DIRECTORY_SEPARATOR.strtr(strtolower(substr($classstrlen("Validation_DataType_"))), '_'DIRECTORY_SEPARATOR).'.php';
    }
}
spl_autoload_register('validateDataTypeAutoload');
set_include_path(get_include_path().PATH_SEPARATOR.realpath(dirname(__FILE__)));