static function getInstance() { if (self::$instance == NULL) { self::$instance = new Debugger(); } return self::$instance; }
/** * * singletone pattern * @param array * @return Debugger instance */ public static function getInstance(array $params = array()) { if (!self::$instance) { self::$instance = new self($params); } return self::$instance; }
public static function GetInstance() { if (self::$instance == null) { self::$instance = new Debugger(); } return self::$instance; }
function isInScopes($array = array()) { $Debugger =& Debugger::instance(); return $Debugger->isInScopes($array); }
<?php /** * Site Initialization * * @author Christopher Troup <*****@*****.**> * @package CMS * @subpackage Core * @version 2.0 */ include_once 'include/Debugger.php'; error_reporting(E_ALL); $debugger = Debugger::instance(); $oldErrorHandler = set_error_handler(array(&$debugger, 'errorHandler'), E_ALL); $debugger->debug("first call"); /* * Kicks things off with initiliziation of the general framework infrastructure. */ include_once 'include/Site.php'; error_reporting(E_ALL); /* * Assess whether we are logging in on this page request. */ if (isset($_REQUEST['username']) && isset($_REQUEST['password'])) { $auth_container = new CMSAuthContainer(); $auth = new Auth($auth_container, null, 'authInlineHTML'); $auth->start(); } if (@(!isset($_REQUEST['module']))) { $options = Config::singleton()->options; $_REQUEST['module'] = 'Content';