Completed
Push — master ( 0c2cb4...672bed )
by Richard
07:48
created

Plugins::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
 * plugins module
14
 *
15
 * @copyright       XOOPS Project (http://xoops.org)
16
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
17
 * @package         plugins
18
 * @since           2.6.0
19
 * @author          trabis <[email protected]>
20
 * @version         $Id$
21
 */
22
23
class Plugins extends Xoops\Module\Helper\HelperAbstract
24
{
25
    /**
26
     * Init the module
27
     *
28
     * @return null|void
29
     */
30
    public function init()
31
    {
32
        $this->setDirname('plugins');
33
    }
34
35
    /**
36
     * @return Plugins|\Xoops\Module\Helper\HelperAbstract
37
     */
38
    public static function getInstance()
39
    {
40
        return parent::getInstance();
41
    }
42
43
    /**
44
     * @return PluginsPluginHandler
45
     */
46
    public function getHandlerPlugin()
47
    {
48
        return $this->getHandler('plugin');
49
    }
50
51
}
52