YANA 4 PHP FrameworkDocs For Class Singleton

### Class Singleton

#### Description

«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.

- access: public
- abstract:

Located in /includes/class_singleton.php

    SerializeableObject
       |
       --Singleton

#### Direct descendents

Class | Description
--- | ---
Language | «Singleton» Language
PluginManager | «Singleton» PluginManager
Yana | «Singleton» Yana

#### Method Summary

void checkSingletonConstraint ()

#### Methods

##### checkSingletonConstraint

void checkSingletonConstraint ()

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)

- access: protected

#### Inherited Methods

Inherited From SerializeableObject

> SerializeableObject::serialize()
> SerializeableObject::toString()

Documentation generated on Sat, 16 Sep 2006 17:06:04 +0200 by phpDocumentor 1.3.0RC4

yana author: Thomas Meyerwww.all-community.de/pub