XOOPS  2.6.0
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 
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);
52  }
53 
54  // not an active installed module
55  return false;
56  }
57 }
static getHelper($dirname= 'system')
Definition: Helper.php:41
static getInstance($dirname= 'notsetyet')
xoops_isActiveModule($dirname)
Definition: functions.php:103
$dirname
Definition: backend.php:38