1: | <?php |
2: | /** |
3: | * XOOPS legacy error handler |
4: | * |
5: | * You may not change or alter any portion of this comment or credits |
6: | * of supporting developers from this source code or any supporting source code |
7: | * which is considered copyrighted (c) material of the original comment or credit authors. |
8: | * This program is distributed in the hope that it will be useful, |
9: | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10: | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
11: | * |
12: | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
13: | * @license GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html) |
14: | * @package kernel |
15: | * @since 2.0.0 |
16: | * @deprecated |
17: | */ |
18: | |
19: | defined('XOOPS_ROOT_PATH') || exit('Restricted access'); |
20: | |
21: | xoops_loadLanguage('errors'); |
22: | |
23: | XoopsLoad::load('xoopslogger'); |
24: | |
25: | $GLOBALS['xoopsLogger']->addDeprecated("'/class/errorhandler.php' is deprecated since XOOPS 2.5.4, please use '/class/logger/xoopslogger.php' instead."); |
26: | |
27: | /** |
28: | * Xoops ErrorHandler |
29: | * |
30: | * Backward compatibility code, do not use this class directly |
31: | * |
32: | * @package kernel |
33: | * @subpackage core |
34: | * @author Kazumi Ono <onokazu@xoops.org> |
35: | * @author John Neill <catzwolf@xoops.org> |
36: | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
37: | */ |
38: | class XoopsErrorHandler extends XoopsLogger |
39: | { |
40: | /** |
41: | * Activate the error handler |
42: | * @param bool $showErrors |
43: | */ |
44: | public function activate($showErrors = false) |
45: | { |
46: | $this->activated = $showErrors; |
47: | } |
48: | |
49: | /** |
50: | * Render the list of errors |
51: | */ |
52: | public function renderErrors() |
53: | { |
54: | return $this->dump('errors'); |
55: | } |
56: | } |
57: |