Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/autoloader-example-files/ns-class-file.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/ns-class-file.php  >  Download  
File: examples/autoloader-example-files/ns-class-file.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: 2013-12-10 08:48
Size: 374 bytes
 

Contents

Class file image Download
<?php

    
/**
    * AUTOLOADER EXAMPLE NAMESPACED CLASS ADDED WITH THE ADDFILES( ) METHOD FOR PTCHM-EX.PHP FILE
    */
    
namespace ns;
    
    class 
HmTestClassFile
    
{
        public function 
__construct( )
        {
            
$dir = \PtcHandyMan::getDirs'files' );
            echo 
'Class "' __CLASS__ '" autoloaded, namespace "' __NAMESPACE__ '":<br>&nbsp;&nbsp;' $dir__CLASS__ ]. '<br><br>';

        }
    }