PHP Classes

File: examples/autoloader-example-files/class-file.php

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

Contents

Class file image Download
<?php

   
/**
    * AUTOLOADER EXAMPLE CLASS ADDED WITH THE ADDFILES( ) METHOD FOR PTCHM-EX.PHP FILE
    */
   
   
class HmTestClassFile
   
{
        public function
__construct( )
        {
           
$dir = PtcHandyMan::getDirs( 'files' );
            echo
'Class "' . __CLASS__ . '" autoloaded:<br>&nbsp;&nbsp;' . $dir[ __CLASS__ ] . '<br><br>';

        }
    }