DeBot Framework


DeBot\Singleton
core/Singleton.php at line 17

Class Singleton

Singleton

public class Singleton

DeBot Core - Singleton Created by dab ??? ?? 2009 Last Edited: Aug 15 2010 This class lets us makes all of the classes available anywhere via a static call. Also makes sure an object isn't declared more than once. Utilizes the get_called_class function only available in PHP 5.3+. Sorry non 5.3-ers :(

Author:
David (dab)
Version:
v1.0

Method Summary
private void

__construct()

static object

obj()

Use this to fetch the object of the er...

Method Detail

core/Singleton.php at line 26

__construct

private void __construct()

core/Singleton.php at line 37

obj

public static object obj()

Use this to fetch the object of the er... object? It's 3am. I can't think of the correct terms...

Returns:
The object from the class

DeBot Framework