Login   Register  
PHP Classes
elePHPant
Icontem

Super Proxy

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mathias Krieck  >  Super Proxy  >  Download .tar.gz .zip  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Super Proxy
Base name: super-proxy
Description: Create object to access private members
Related classes: , ,
Version: -
PHP version: 5.2
License: GNU General Public License (GPL)
All time users: 427 users
All time rank: 4975
Week users: 0 users
Week rank: 2364
 

  Author  
Picture of Mathias Krieck
Name: Mathias Krieck is available for providing paid consulting. Contact Mathias Krieck .
Packages: 1 Browse all classes by Mathias Krieck Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 33
All time rank: 2736171 in Germany Germany
Week rank: 2217 Up140 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
This class can be used to create object of a class in order to access private and protected variables and functions of another class.

It uses reflection to create a copy of the declaration of a given class and changes it to turn private and protected variables and functions.

The class can create an object of the original class copy.

  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes
Group folder image Testing Tools to help verifying that software works as expected View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
September 2009
Number 5

Prize: One subscription to the PDF edition of the PHP Architect magazine
When you want to perform a tests that verify whether a given class works as expected, you may need to call functions or access variables that are private or protected.

That circumstance raises a difficulty because you can only access private and protected members from inside the same class.

This class provides a workaround that consists in creating a clone of the original class which has all private and protected variables and functions made public.

This way it becomes possible to access all class members for testing purposes.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file SuperProxy.php Class Proxy class

Download all files: super-proxy.tar.gz super-proxy.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.