PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-02 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 98 All time: 8,375 This week: 872Up
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: 6 packages by
Country: Serbia Serbia
Age: 22
All time rank: 255710 in Serbia Serbia
Week rank: 363 Up4 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example script
Plain text file Hydrator.php Class class itself

 Version Control Unique User Downloads Download Rankings  
 0%
Total:98
This week:0
All time:8,375
This week:872Up