PHP Classes

File: data.lib.php

Recommend this page to a friend!
  Classes of Martin Alterisio   DATA   data.lib.php   Download  
File: data.lib.php
Role: Application script
Content type: text/plain
Description: Main include file of the DATA library.
Class: DATA
Access data stored in MySQL tables like arrays
Author: By
Last change:
Date: 17 years ago
Size: 457 bytes
 

Contents

Class file image Download
<?php
/**
 * Main include file of the DATA library.
 */

/**
 * Autoload function for DATA library.
 * @access private
 * @param string $className The name of the class to be loaded
 */
function autoload_data_lib($className) {
    if (
substr($className, 0, 4) != "DATA") return false;
    require_once
dirname(__FILE__) . '/' . str_replace('_', '/', $className) . '.php';
    return
true;
}

spl_autoload_register('autoload_data_lib');
?>