forked from fititnt/lib_debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.php
56 lines (47 loc) · 1.18 KB
/
loader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @package Debug Library
* @author Emerson Rocha Luiz - emerson at webdesign.eng.br - fititnt
* @copyright Copyright (C) 2011 Webdesign Assessoria em Tecniligia da Informacao. All rights reserved.
* @license GNU General Public License version 3. See license.txt
*/
defined('JDLIB_PATH') or die('Restricted access');
/**
*
*/
abstract class JDLib {
/**
*
* @var Object $benchmark
*/
public static $benchmark;
/**
*
* @var Object $log
*/
public static $log;
/**
* Return Benchmark Object, creating if aready doesent exists
*
* @return Object $benchmark
*/
public static function getBenchmark() {
if (!self::$benchmark) {
jimport('debug.benchmark.load');
self::$benchmark = LoadBenchmark::getInstance();
}
return self::$benchmark;
}
/**
* Return Log Object, creating if aready doesent exists
*
* @return Object $log
*/
public static function getLog() {
if (!self::$log) {
jimport('debug.log.load');
self::$log = LoadLog::getInstance();
}
return self::$log;
}
}