Skip to content

Instantly share code, notes, and snippets.

@thomasgriffin
Created February 12, 2012 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasgriffin/1805593 to your computer and use it in GitHub Desktop.
Save thomasgriffin/1805593 to your computer and use it in GitHub Desktop.
public static function singleton() {
if ( ! isset( self::$instance ) )
self::$instance = new __CLASS__;
return self::$instance;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment