PHP Classes

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

Recommend this page to a friend!
  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 years 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[ 1 ] . ' - ' . basename( __FILE__ ) . '<br><br>';
        }
    }