XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
Helper.php
Go to the documentation of this file.
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
namespace
Xmf\Module
;
13
14
use
Xmf\Module\Helper\GenericHelper
;
15
32
class
Helper
33
{
41
public
static
function
getHelper
(
$dirname
=
'system'
)
42
{
43
// if this is a 2.6 system turn everything over to the core
44
if
(class_exists(
'Xoops'
,
false
)) {
45
return \Xoops\Module\Helper::getHelper(
$dirname
);
46
}
47
48
// otherwise get a GenericHelper instance for dirname
49
$dirname
= strtolower(
$dirname
);
50
if
(
xoops_isActiveModule
(
$dirname
)) {
51
return
GenericHelper::getInstance
(
$dirname
);
52
}
53
54
// not an active installed module
55
return
false
;
56
}
57
}
Xmf\Module\Helper\getHelper
static getHelper($dirname= 'system')
Definition:
Helper.php:41
Xmf\Module\Helper\GenericHelper\getInstance
static getInstance($dirname= 'notsetyet')
Definition:
GenericHelper.php:75
xoops_isActiveModule
xoops_isActiveModule($dirname)
Definition:
functions.php:103
GenericHelper
Xmf\Module
Definition:
Admin.php:12
Xmf\Module\Helper
Definition:
Helper.php:32
$dirname
$dirname
Definition:
backend.php:38
usr64
htdocs
xoops_lib
Xmf
Module
Helper.php
Generated on Fri May 22 2015 03:07:03 for XOOPS by
1.8.9.1