|Info||View files (4)||Download .zip||Reputation||Support forum||Blog|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2008-11-27 (5 years ago)||Not enough user ratings||Total: 575 This week: 1||All time: 4,818 This week: 1,420|
|friendly_class 1.0||GNU Lesser General Publ...||5.0||PHP 5, Language|
It is a base class that provides alternative methods prefixed with the name friend_ .
When a function is called with that prefix, the base class calls the function with the name after the prefix, if it is considered a friend method.
Prize: One book of choice by Packt
|Certain packages consist of multiple classes that are used in cooperation. Such classes usually need to access each other protected variables or functions.
In other languages there are friend classes like in C++ or package classes like in Java that allow restricting the access to variables of functions to cooperating classes.
Even with the enhancements of version 5 object model, there is no PHP support to this concept similar to C++ friend or Java package classes.
This class provides an emulation of such concept that works under PHP 5.
|Version Control||Unique User Downloads||Download Rankings|
|This week:||1||This week:||1,420|