PHP Classes
elePHPant
Icontem

File: examples/autoloader-example-files/namespaceTest/HmTestNs.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/HmTestNs.php  >  Download  
File: examples/autoloader-example-files/namespaceTest/HmTestNs.php
Role: Example script
Content type: text/plain
Description: autoloader example class in namespaced folder
Class: PHP Handyman
Dynamically add functions to an object
Author: By
Last change:
Date: 1 year ago
Size: 403 bytes
 

Contents

Class file image Download
<?php

   
/**
    * AUTOLOADER NAMESPACED FILE EXAMPLE CLASS FOR PTCHM-EX.PHP FILE
    */
   
   
namespace nsTest;
   
    class
HmTestNs
   
{
        public function
__construct( )
        {
           
$dir = \PtcHandyMan::getDirs( 'ns' );
            echo
'Class "' . __CLASS__ . '" autoloaded, namespace "' . __NAMESPACE__ . '" example: <br>&nbsp;&nbsp;' .
                                                           
$dir[ __NAMESPACE__ ] . ' - ' . basename( __FILE__ ) . '<br><br>';
        }
    }