PHP Classes

Class Prototype: Define variables of all class objects dynamically

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 66%Total: 821 All time: 4,204 This week: 455Up
Version License PHP version Categories
class-prototype 1.0GNU Lesser Genera...5.2PHP 5, Language
Description 

Author

This class can be used to define variables of all class objects dynamically similar to Javascript prototype.

It defines a base class that assigns values to variables of existing and future objects of derived classes.

Innovation Award
PHP Programming Innovation award nominee
February 2010
Number 2


Prize: One year subscription to the PDF edition of the JSMag magazine
Some languages, like for instance JavaScript, allow you to dynamically add variables and functions to objects of a class.

This class provides a similar solution that allows assigning new variables to all existing and future objects of the same base class.

Manuel Lemos
Picture of Marco Marchiņ
  Performance   Level  
Name: Marco Marchiņ <contact>
Classes: 3 packages by
Country: Italy Italy
Age: 35
All time rank: 78429 in Italy Italy
Week rank: 258 Up7 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (3)  
File Role Description
Plain text file classPrototype.php Class classPrototype engine
Accessible without login HTML file documentation.html Doc. documentation
Accessible without login Plain text file test.php Example test

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:821
This week:0
All time:4,204
This week:455Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:504