 |
|
Innovation award
 Nominee: 1x |
In software engineering, a design pattern is a general solution to a common problem in software design. One of these design patterns is called the Singleton. It's purpose can be described quite briefly as follows:
Ensure a class has only one instance and provide a global point of access to it.
It achieves this by only creating a new instance the first time it is referenced, and thereafter it simply returns the handle to the existing instance.
--------------------------------------------------------------------------------------------
sTonClass is a base class that implements the singleton design pattern.
The class can only be instantiated using a static function that assures that there is only one object of that class.
If the class was already instantiated, it returns a reference to the previously created class object.
The class also provides functions for store, retrieving and deleting object properties.
|
|
| Name: |
True Singleton Class |
| Base name: |
singleton_class |
| Description: |
PHP implementation of the singleton design pattern |
| Version: |
1.0.5 |
| PHP version: |
5.0 |
| License: |
GNU General Public License (GPL) |
| All time users: |
1053 users |
| All time rank: |
3079 |
| Week users: |
0 users |
| Week rank: |
2072  |
| |
|
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Sufficient (68.8%) |
Sufficient (62.5%) |
- |
Sufficient (75.0%) |
- |
- |
Not sure (48.1%) |
1660 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|