YANA 4 PHP Framework
Docs For Class Singleton
«abstract» Singleton
To create a Singleton class, simply add "extends Singleton" to your class definition and add $this->checkSingletonConstraint() as the first line in your constructor.
Note: this class is abstract, because it extends an abstract super-class without implementing all abstract functions - NOT because it declares any abstract members itself.
Located in /includes/class_singleton.php
Object | --Singleton
Class | Description |
---|---|
Language | «Singleton» Language |
PluginManager | «Singleton» PluginManager |
SessionManager | «Singleton» SessionManager |
Yana | «Singleton» Yana |
Terminates the program and issues an E_USER_ERROR if singleton constraint is breached. (if the constructor is called and another instance of this class already exists)
Inherited From Object
Documentation generated on Sun, 11 Mar 2007 15:02:44 +0100 by phpDocumentor 1.3.1