Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/autoloader-example-files/namespaceTest/hmNsDeep/HmTestNsDeep.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/namespaceTest/hmNsDeep/HmTestNsDeep.php  >  Download  
File: examples/autoloader-example-files/namespaceTest/hmNsDeep/HmTestNsDeep.php
Role: Example script
Content type: text/plain
Description: autoloader example file namespaced class in subfolder
Class: PHP Handyman
Dynamically add functions to an object
Author: By
Last change:
Date: 2013-12-10 08:48
Size: 444 bytes
 

Contents

Class file image Download
<?php

    
/**
    * AUTOLOADER NAMESPACED INSIDE SUB FOLDER FILE EXAMPLE CLASS FOR PTCHM-EX.PHP FILE
    */
    
    
namespace nsTest\hmNsDeep;
    
    class 
HmTestNsDeep        
    
{
        public function 
__construct( )
        {
            
$dir = \PtcHandyMan::getDirs'ns' );
            echo 
'Class "' __CLASS__ '" autoloaded, namespace "' __NAMESPACE__
                    
'" inside subfolder example: <br>&nbsp;&nbsp;' $dir'nsTest' ] . '/hmNsDeep - ' basename__FILE__ ) . '<br><br>';
        }
    }