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: * @copyright 2010-2014 XOOPS Project (http://xoops.org)
14: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
15: * @package xlanguage
16: * @since 2.6.0
17: * @author Laurent JEN (Aka DuGris)
18: * @version $Id$
19: */
20:
21: class Xlanguage extends Xoops\Module\Helper\HelperAbstract
22: {
23: /**
24: * Init the module
25: *
26: * @return null|void
27: */
28: public function init()
29: {
30: if (XoopsLoad::fileExists($hnd_file = \XoopsBaseConfig::get('root-path') . '/modules/xlanguage/include/vars.php')) {
31: include_once $hnd_file;
32: }
33:
34: if (XoopsLoad::fileExists($hnd_file = \XoopsBaseConfig::get('root-path') . '/modules/xlanguage/include/functions.php')) {
35: include_once $hnd_file;
36: }
37: $this->setDirname('xlanguage');
38: }
39:
40: /**
41: * @return Xlanguage
42: */
43: public static function getInstance()
44: {
45: return parent::getInstance();
46: }
47:
48: /**
49: * @return XlanguageXlanguageHandler
50: */
51: public function getHandlerLanguage()
52: {
53: return $this->getHandler('xlanguage');
54: }
55: }
56: