Login   Register  
PHP Classes
elePHPant
Icontem

Dynamic Methods

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Pashkov Denis Igorevich
Name: Pashkov Denis Igorevich <e-mail contact>
Packages: 19 Browse all classes by Pashkov Denis Igorevich Browse all classes by
Country: Ukraine Ukraine - PHP jobs in Ukraine
Age: 23
All time rank: 40110 in Ukraine Ukraine
Week rank: 107 Up4 in Ukraine Ukraine Up
Innovation award
Innovation award
Nominee: 10x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
This class can be used to add class functions dynamically from script files.

It traps calls to inexistent class functions. The class loads script files with the same name as the called function and uses the loaded code to implement the missing functions.

  Classes of Pashkov Denis Igorevich  >  Dynamic Methods  >  Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Dynamic Methods
Base name: dynamic-methods
Description: Add class functions dynamically from script files
Version: 1.0
PHP version: 5.3
License: The PHP License
All time users: 476 users
All time rank: 5053
Week users: 0 users
Week rank: 2015 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
January 2011
Number 5

Prize: One subscription to the PDF edition of the PHP Architect magazine
One way to extend the functionality of a class is to load external plug-in scripts when certain functions are called.

The inconvenience of this approach is that usually needs to register somehow the functions that are implemented by plug-ins before calling them.

This class implements a more automatic approach that does not require prior plug-in registration.

It implements a default class call function which intercepts calls to missing functions and automatically loads on demand external plug-in scripts with names based on the called function.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (56.2%)
Good (87.5%)
Not sure (43.8%)
Not sure (50.0%)
-
-
Not sure (46.2%)
1760
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file foo Aux. foo
Plain text file hello_world Aux. part hello world
Plain text file main_class.php Class main class
Plain text file readme.txt Doc. readme
Plain text file samples.php Example example

Download all files: dynamic-methods.tar.gz dynamic-methods.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.