Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2013-12-10 08:48
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>';

        }
    }