Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/autoloader-example-files/hmtestclassls.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/hmtestclassls.php  >  Download  
File: examples/autoloader-example-files/hmtestclassls.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: 11 months ago
Size: 432 bytes
 

Contents

Class file image Download
<?php

    
/**
    * AUTOLOADER LOWERCASE FILE EXAMPLE CLASS FOR PTCHM-EX.PHP FILE
    */
    
    
class HmTestClassLs
    
{
        public function 
__construct( )
        {
            
$dir = \PtcHandyMan::getDirs'directories' );
            echo 
'Class "' __CLASS__ '" autoloaded, example with file name lowercase which is always the second guess for the autoloader: <br>&nbsp;&nbsp;' 
                                                                                            
$dir] . ' - ' basename__FILE__ ) . '<br><br>';
        }
    }