class/oledrion_utils.php 1 location
|
@@ 418-432 (lines=15) @@
|
415 |
|
* |
416 |
|
* @return object The module |
417 |
|
*/ |
418 |
|
protected static function _getModule() |
419 |
|
{ |
420 |
|
static $mymodule; |
421 |
|
if (!isset($mymodule)) { |
422 |
|
global $xoopsModule; |
423 |
|
if (isset($xoopsModule) && is_object($xoopsModule) && $xoopsModule->getVar('dirname') == OLEDRION_DIRNAME) { |
424 |
|
$mymodule = $xoopsModule; |
425 |
|
} else { |
426 |
|
$hModule = xoops_getHandler('module'); |
427 |
|
$mymodule = $hModule->getByDirname(OLEDRION_DIRNAME); |
428 |
|
} |
429 |
|
} |
430 |
|
|
431 |
|
return $mymodule; |
432 |
|
} |
433 |
|
|
434 |
|
/** |
435 |
|
* Returns the module's name (as defined by the user in the module manager) with cache |
class/utility.php 1 location
|
@@ 561-575 (lines=15) @@
|
558 |
|
* |
559 |
|
* @return object The module |
560 |
|
*/ |
561 |
|
protected static function _getModule() |
562 |
|
{ |
563 |
|
static $mymodule; |
564 |
|
if (!isset($mymodule)) { |
565 |
|
global $xoopsModule; |
566 |
|
if (isset($xoopsModule) && is_object($xoopsModule) && $xoopsModule->getVar('dirname') == OLEDRION_DIRNAME) { |
567 |
|
$mymodule = $xoopsModule; |
568 |
|
} else { |
569 |
|
$hModule = xoops_getHandler('module'); |
570 |
|
$mymodule = $hModule->getByDirname(OLEDRION_DIRNAME); |
571 |
|
} |
572 |
|
} |
573 |
|
|
574 |
|
return $mymodule; |
575 |
|
} |
576 |
|
|
577 |
|
/** |
578 |
|
* Returns the module's name (as defined by the user in the module manager) with cache |