Login   Register  
PHP Classes
elePHPant
Icontem

miXin: Extend classes by using several mixin classes

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 (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-08-12 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 345 All time: 6,315 This week: 1,311Up
Version License PHP version Categories  
php-mixin 0.1GNU Lesser General Publ...5.0PHP 5, Language, Code Generation
Description Author  

This class can extend classes by using several mixin classes.

It can load the code of two or more class files and create a new class definition in such way that the first is extended by the others.

The loaded classes are cached until the class files are modified to avoid the overhead of restacking the class files every time they are loaded.

Innovation Award  
PHP Programming Innovation award nominee
September 2011
Number 9
Usually if you want to extend a class you need to define one class explicitly as an extension of another.

This class provides an alternative approach that allows that a base class be extended by multiple other classes without having to define them as extensions of each other.

Manuel Lemos
Picture of David Boskovic
Name: David Boskovic <contact>
Classes: 1 package by
Country: Canada Canada
Age: ???
All time rank: 330679 in Canada Canada
Week rank: 1580 Up35 in Canada Canada Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagestacks (4 files)
Files folder imagetests (4 files)
Plain text file mixin.php Class Class source
Accessible without login Plain text file readme.markdown Doc. Documentation
Accessible without login Plain text file setup.markdown Doc. Documentation
Accessible without login Plain text file stackindex.cache Output Sample output
Accessible without login Plain text file test.php Example Unit test script

  Files folder image Files  /  stacks  
File Role Description
  Accessible without login Plain text file 31c226b21bb94f8daf0715bf913f77ce.php Output Sample output
  Accessible without login Plain text file a87fe4d445124a6a14240eba6f7e185b.php Output Sample output
  Accessible without login Plain text file cca4a4b222dc407169a3397fa0097c11.php Output Sample output
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file base.php Example Unit test script
  Accessible without login Plain text file extend.php Example Unit test script
  Accessible without login Plain text file extend2.php Example Unit test script
  Accessible without login Plain text file extend3.php Example Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%Total:345All time:6,315
 This week:0This week:1,311Up