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
SerializeableObject | --Singleton
Class | Description |
---|---|
Language | «Singleton» Language |
PluginManager | «Singleton» PluginManager |
Yana | «Singleton» Yana |
check Singleton - constraint
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 SerializeableObject
SerializeableObject::serialize()
SerializeableObject::toString()
Documentation generated on Sat, 16 Sep 2006 17:06:04 +0200 by phpDocumentor 1.3.0RC4