Login   Register  
PHP Classes
elePHPant
Icontem

File: autoload.inc.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  >  QTag  >  autoload.inc.php  >  Download  
File: autoload.inc.php
Role: Auxiliary script
Content type: text/plain
Description: autoloader
Class: QTag
Generate tag based documents programmatically
Author: By
Last change:
Date: 2008-07-16 11:36
Size: 316 bytes
 

Contents

Class file image Download
<?php

function __autoload($className=null) {
    
$classes = array (
        
'QTag.class.php'
        
'QTagNode.class.php'
        
'QCommonTags.class.php'
    );

    foreach(
$classes as $class) {
        include_once(
$class);
    }
    if(!
class_exists($className)) {
        include_once(
$className.".class.php");
    }

}