PHP Classes
Icontem

Class: True Singleton Class


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of sourav ray  >  True Singleton Class  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: True Singleton Class Support forum
Base name: singleton_class
Description: PHP implementation of the singleton design pattern
Related top rated classes:
Version: 1.0.5
Required PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 694 users
All time rank: 3117
Week users: 4 users
Week rank: 1673
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of sourav ray
Name: sourav ray is available for providing paid consulting. Contact sourav ray .
Published packages: 2 Browse this author's classes Browse this author's classes
Country: India India - PHP jobs in India
Home page: http://i-code-today.blogspot.com/
Age: 30
All time rank: 1348
Week rank: 807

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 Design Patterns Implementations of well known design patterns View top rated classes

Detailed description

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.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (58.3%)
Not sure (58.3%)
-
Sufficient (75.0%)
-
-
Not sure (42.5%)
1668
Month:
Not yet rated by the users

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.

Related links

Link Description
common misunderstanding of a singleton This is a very common problem with almost all available singleton implantations. THANK GOD I FOUND A BETTER SOLUTION FOR MY READER...
Singleton Tutorial An in-depth analysis of singleton design pattern .

Files

File Role Description
Plain text file singleton.class.php Class Singleton Class
Accessible without login Plain text file License.txt Lic. GPL License for sTonClass
Accessible without login Plain text file example.php Example example of use of singleton class
Download all files: singleton_class.tar.gz singleton_class.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products