PHP Classes
Icontem

File: genericarray.lib.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Alterisio  >  Generic Array  >  genericarray.lib.php  
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
 

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');
?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products