1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: /**
13: * Xoops Logger handlers - component main class file
14: *
15: * Records information about database queries, blocks, and execution time
16: * and can display it as HTML. It also catches php runtime errors.
17: *
18: * @category Xoops\Class\Logger\Logger
19: * @package Logger
20: * @author Kazumi Ono <onokazu@xoops.org>
21: * @author Skalpa Keo <skalpa@xoops.org>
22: * @author Taiwen Jiang <phppp@users.sourceforge.net>
23: * @copyright 2013 XOOPS Project (http://xoops.org)
24: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
25: * @link http://xoops.org
26: * @see Xoops\Logger
27: * @deprecated since 2.6.0
28: *
29: */
30: class XoopsLogger
31: {
32: /**
33: * getInstance - get only instance of this class
34: *
35: * @return object XoopsLogger
36: * @deprecated
37: */
38: public static function getInstance()
39: {
40: static $instance;
41: if (!isset($instance)) {
42: $class = __CLASS__;
43: $instance = new $class();
44: }
45: return $instance;
46: }
47:
48: /**
49: * deprecatedWarning - centralized warning for all methods
50: *
51: * @return void
52: */
53: private function deprecatedWarning()
54: {
55: Xoops::getInstance()->deprecated('XoopsLogger is deprecated since 2.6.0, see Xoops\Core\Logger');
56: }
57:
58: /**
59: * magic set method
60: *
61: * @param string $var does nothing
62: * @param mixed $val does nothing
63: *
64: * @return void
65: * @depreciated
66: */
67: public function __set($var, $val)
68: {
69: $this->deprecatedWarning();
70: }
71:
72: /**
73: * magic get method
74: *
75: * @param mixed $var does nothing
76: *
77: * @return void
78: * @depreciated
79: */
80: public function __get($var)
81: {
82: $this->deprecatedWarning();
83: }
84:
85: /**
86: * magic call method
87: *
88: * @param string $method does nothing
89: * @param mixed $args does nothing
90: *
91: * @return void
92: * @depreciated
93: */
94: public function __call($method, $args)
95: {
96: $this->deprecatedWarning();
97: }
98: }
99: