Login   Register  
PHP Classes
elePHPant
Icontem

PHP Handyman: Dynamically add functions to an object

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-02 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 361 All time: 6,205 This week: 1,379Up
Version License PHP version Categories  
php-handyman 0.9.3GNU General Public Lice...5.3PHP 5, Language
Description Author  

This class can dynamically add functions to an object.

It can register a global function to an object of the class which is called when a function with the same name is called on that object.

The class can also register other classes which will be called when functions of the object are called for which there is a function with the same name in the registered classes.

Those class files can be automatically loaded when necessary if there are class files in the current directory or in the include path with matching names.

Picture of Carlo Pietrobattista
Name: Carlo Pietrobattista <contact>
Classes: 5 packages by
Country: Italy Italy
Age: 36
All time rank: 120644 in Italy Italy
Week rank: 376 Up20 in Italy Italy Up

  Files folder image Files  
File Role Description
Files folder imageexamples (1 file, 1 directory)
Plain text file PtcHm.php Class main class

  Files folder image Files  /  examples  
File Role Description
Files folder imageautoloader-example-files (5 files, 2 directories)
  Accessible without login Plain text file ptchm-ex.php Example autoloader examples file

  Files folder image Files  /  examples  /  autoloader-example-files  
File Role Description
Files folder imagenamespaceTest (2 files, 1 directory)
Files folder imagetest-separators (3 files)
  Accessible without login Plain text file class-file.php Example autoloader example class file
  Accessible without login Plain text file HmTestClass.php Example autoloder example class file
  Accessible without login Plain text file hmtestclassls.php Example autoloader example class file
  Accessible without login Plain text file ns-class-file.php Example autoloader example class file
  Accessible without login Plain text file README Data autoloader example files folder

  Files folder image Files  /  examples  /  autoloader-example-files  /  namespaceTest  
File Role Description
Files folder imagehmNsDeep (2 files)
  Accessible without login Plain text file HmTestNs.php Example autoloader example class in namespaced folder
  Accessible without login Plain text file README Data utoloader example namespaced folder with classes

  Files folder image Files  /  examples  /  autoloader-example-files  /  namespaceTest  /  hmNsDeep  
File Role Description
  Accessible without login Plain text file HmTestNsDeep.php Example autoloader example file namespaced class in subfolder
  Accessible without login Plain text file README Data utoloader examples folder namespaced classes in subfolder

  Files folder image Files  /  examples  /  autoloader-example-files  /  test-separators  
File Role Description
  Accessible without login Plain text file class.hm-test-sep1.php Example utoloader example class with different naming convention
  Accessible without login Plain text file Hm-Test-Sep.php Example utoloader example class with different naming convention
  Accessible without login Plain text file README Data autoloader example folder classes with different naming convention

 Version Control Unique User Downloads Download Rankings  
 100%Total:361All time:6,205
 This week:0This week:1,379Up