CodeCanyon Class Mutations Dynamically Add Methods 5340417

CodeCanyon Class Mutations Dynamically Add Methods 5340417

CodeCanyon Class Mutations Dynamically Add Methods 5340417
PHP Script \ Miscellaneous
Class \ Mutable \ Mutation \ Method \ Morph \ Methods \ Remove \ Trait

PHP Script - Class Mutations Dynamically Add Methods 5340417 by afflicto @ CodeCanyon

PHP Script \ Miscellaneous

Last Update: 11 August 13; Software Version: PHP 5.3, PHP 5.4; Files Included: PHP.

Upcoming Version 1.1.0

Currently, sub-classes extending a mutated class (a class with mutated methods) do not inherit those mutated methods, this is coming in version 1.1.0, it should be up in a few days!

Changelog

- [Aug 10 2013]: Initial Release

What’s this?

A pack of three classes that enables you to dynamically add new methods to a class or object using closures (anonymous functions). Both static and instance methods can be added.

If you purchase, please consider rating the product! – Thanks

Why?

If you’re developing a website or web application that needs to be modular or perhaps provide an API for plugin/module development, this mutations system can be very useful in providing flexibility.

What’s included?

Included in the zip file is an examples directory with four commented PHP example files that show you what’s possible and the different implementations available to your version of PHP.

There are three classes, plus a trait. If you’re on PHP version 5.4 or later, I recommend using the trait, it’s a simple one-liner (or a three-liner if you need to implement your own __call and __callStatic methods)

Need any help?

If you need any help or have any questions, feel free to give me a comment or send me message via email.

Cheers!

HTML Layout & Utility Class; Event/Hook class.

Keywords: PHP Traits, add class methods, class morph, dynamic method, metamorphosis, method morph, mutable, mutable class, mutation, mutation class, php, php 5.4, php5, remove class methods, trait.



Tags: Class, Methods, Mutable, Mutation, Morph, Method

Premium CodeCanyon Class Mutations Dynamically Add Methods 5340417 WordPress Themes, Website Templates, Mobile Themes, Flash Templates & Scripts from creative professional designers. Full details of CodeCanyon Class Mutations Dynamically Add Methods 5340417 for digital design and education. CodeCanyon Class Mutations Dynamically Add Methods 5340417 desigen style information or anything related.

Comments:

Name:*
E-Mail:*
Add Comments:
Enter Code: *