Documentation

Singleton
in package

IoC Singleton class.

A self binding, self contained single class that supports IoC. Usage: myObject::instance()

Tags
author

Alexey Bobkov, Samuel Georges

Table of Contents

getSingletonInstance()  : mixed
instance()  : mixed
Create a new instance of this singleton.
__construct()  : mixed
Constructor.
getSingletonAccessor()  : mixed
This should be a meaningful IoC container code. Eg: backend.helper
init()  : mixed
Initialize the singleton free from constructor parameters.

Methods

getSingletonInstance()

public final static getSingletonInstance() : mixed
Return values
mixed

instance()

Create a new instance of this singleton.

public final static instance() : mixed
Return values
mixed

__construct()

Constructor.

protected final __construct() : mixed
Return values
mixed

getSingletonAccessor()

This should be a meaningful IoC container code. Eg: backend.helper

protected static getSingletonAccessor() : mixed
Return values
mixed

init()

Initialize the singleton free from constructor parameters.

protected init() : mixed
Return values
mixed

Search results