PHP Classes

Dynamic Method: Dynamically add functions to objects

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 959 All time: 3,763 This week: 37Up
Version License PHP version Categories
dynamic_method 1.0BSD License4.0Language, Code Generation
Description 

Author

This package can be used to dynamically add new functions to already created objects.

It takes an existing object and creates a sub-class of the object's class that has a new function with a given name and code defined by a string.

A new object is created with variables set to copies of the original object variable values.

Picture of Cesar D. Rodas
  Performance   Level  
Name: Cesar D. Rodas <contact>
Classes: 38 packages by
Country: Paraguay Paraguay
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

  Files folder image Files (2)  
File Role Description
Plain text file dynmethod.php Class main class
Accessible without login Plain text file example.php Example Example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:959
This week:0
All time:3,763
This week:37Up
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:95%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:812