PHP Classes
elePHPant
Icontem

File: classes/Transfer/index.php

Recommend this page to a friend!
  Classes of Tom Schaefer  >  QTransfer  >  classes/Transfer/index.php  >  Download  
File: classes/Transfer/index.php
Role: Auxiliary script
Content type: text/plain
Description: autoloader
Class: QTransfer
Send HTTP requests and process XML responses
Author: By
Last change:
Date: 10 years ago
Size: 360 bytes
 

Contents

Class file image Download
<?php

function transferAutoload($class) {
    if (
substr($class, 0, strlen("Transfer_")) === 'Transfer_') {
        include
dirname(__FILE__).DIRECTORY_SEPARATOR.strtr(substr($class, strlen("Transfer_")), '_', DIRECTORY_SEPARATOR).'.php';
    }
}
spl_autoload_register('transferAutoload');
set_include_path(get_include_path().PATH_SEPARATOR.realpath(dirname(__FILE__)));