PHP Classes

File: examples/autoloader-example-files/HmTestClass.php

Recommend this page to a friend!
  Classes of Carlo Pietrobattista   PHP Handyman   examples/autoloader-example-files/HmTestClass.php   Download  
File: examples/autoloader-example-files/HmTestClass.php
Role: Example script
Content type: text/plain
Description: autoloder example class file
Class: PHP Handyman
Dynamically add functions to an object
Author: By
Last change:
Date: 10 years ago
Size: 316 bytes
 

Contents

Class file image Download
<?php

   
/**
    * AUTOLOADER EXAMPLE CLASS FOR PTCHM-EX.PHP FILE
    */
   
   
class HmTestClass
   
{
        public function
__construct( )
        {
           
$dir = PtcHandyMan::getDirs( 'directories' );
            echo
'Class "' . __CLASS__ . '" autoloaded from directory:<br>&nbsp;&nbsp;' . $dir[1] . ' - ' . basename( __FILE__ ) . '<br><br>';
        }
    }