Login   Register  
PHP Classes
elePHPant
Icontem

Class: 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: 418 users
All time rank: 4922
Week users: 0 users
Week rank: 2420
Picture of Mathias Krieck
Author: Mathias Krieck is available for providing paid consulting. Contact Mathias Krieck .
Packages: 1 Browse this author's classes Browse this author's classes
Country: Germany Germany - PHP jobs in Germany
Age: 33
All time rank: 2695169 in Germany Germany
Week rank: 2255 Up134 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  
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

  Rate classes User ratings   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
September 2009
Number 5
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.