Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/autoloader-example-files/test-separators/class.hm-test-sep1.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/test-separators/class.hm-test-sep1.php  >  Download  
File: examples/autoloader-example-files/test-separators/class.hm-test-sep1.php
Role: Example script
Content type: text/plain
Description: utoloader example class with different naming convention
Class: PHP Handyman
Dynamically add functions to an object
Author: By
Last change:
Date: 11 months ago
Size: 444 bytes
 

Contents

Class file image Download
<?php

    
/**
    * AUTOLOADER EXAMPLE CLASS FOR PTCHM-EX.PHP FILE
    */
    
    
class Hm_Test_Sep1
    
{
        public function 
__construct( )
        {
            
$dir PtcHandyMan::getDirs'directories' );
            echo 
'Class "' __CLASS__ '" autoloaded lowercase file name, from directory by replacing "_" with "-" separator, using naming convention "class.{CLASS}":<br>&nbsp;&nbsp;' 
                                                                                                                
$dir[2] . ' - ' basename__FILE__ ) . '<br><br>';
        }
    }