PHP Classes

File: typehintclass.lib.php

Recommend this page to a friend!
  Classes of Martin Alterisio   Type Hint Class   typehintclass.lib.php   Download  
File: typehintclass.lib.php
Role: Auxiliary script
Content type: text/plain
Description: Library loader script.
Class: Type Hint Class
Implement type hinting support for base PHP types
Author: By
Last change: Accessible without user login
Date: 16 years ago
Size: 566 bytes
 

Contents

Class file image Download
<?php
/**
 * Main include file of the type hint class library.
 * @package typehintclass
 */

/**
 * Autoload function for type hint class library.
 * @access private
 * @param string $className The name of the class to be loaded
 */
function autoload_typehintclass_lib($className) {
   
$filename = dirname(__FILE__) . '/' . $className . '.php';
    if (
file_exists($filename)) {
        require_once
$filename;
        return
true;
    }
    return
false;
}

spl_autoload_register('autoload_typehintclass_lib');
TypeHintHandler::setUp();
?>