PHP Hydrator Object: Inject values in object variables that are private

Recommend this page to a friend!
  Info   Example   View files (2)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 112 All time: 9,246 This week: 287
Version License PHP version Categories
hydrator 1.0MIT/X Consortium ...5.4PHP 5, Language, Testing
Description Author

This class can Inject values in object variables that are private.

It takes an object of a given class and an array with property values and sets the object properties to the array values using reflection.

If the class properties are private, the class will make the reflection property object accessible, so the object values can be changed.

Picture of Aleksandar Zivanovic
  Performance   Level  
Name: Aleksandar Zivanovic <contact>
Classes: 15 packages by
Country: Serbia Serbia
Age: 26
All time rank: 17217 in Serbia Serbia
Week rank: 79 1 in Serbia Serbia
Innovation award
Innovation award
Nominee: 4x

  Files  
File Role Description
example.php Example example script
Hydrator.php Class class itself

 Version Control Unique User Downloads Download Rankings  
 0%
Total:112
This week:0
All time:9,246
This week:287

For more information send a message to info at phpclasses dot org.