Login   Register  
PHP Classes
elePHPant
Icontem

File: genericarray.lib.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Alterisio  >  Generic Array  >  genericarray.lib.php  >  Download  
File: genericarray.lib.php
Role: Auxiliary script
Content type: text/plain
Description: Library loader script.
Class: Generic Array
Create arrays that allow members of just one type
Author: By
Last change: Access without login.
Date: 7 years ago
Size: 632 bytes
 

Contents

Class file image Download
<?php
/**
 * Main include file of the generic array library.
 * @package genericarray
 */

/**
 * Autoload function for generic array library.
 * @access private
 * @param string $className The name of the class to be loaded
 */
function autoload_genericarray_lib($className) {
    
$filename dirname(__FILE__) . '/' $className '.php';
    if (
file_exists($filename)) {
        require_once 
$filename;
        return 
true;
    }
    if (
ArrayOfGenericLoader::getInstance()->loadClass($className)) {
        return 
true;
    }
    return 
false;
}

spl_autoload_register('autoload_genericarray_lib');
?>