for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace XoopsModules\Xoositemap;
/**
* Xoositemap module
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* @copyright XOOPS Project (https://xoops.org)
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package Xoositemap
* @since 2.6.0
* @author Laurent JEN (Aka DuGris)
* @version $Id: xoositemap.php 1396 2012-12-30 07:36:38Z DuGris $
*/
class Helper extends \Xoops\Module\Helper\HelperAbstract
{
* Init the module
* @return null|void
public function init()
$this->setDirname(basename(dirname(__DIR__)));
$this->loadLanguage('preferences');
}
* @return mixed
public function loadConfig()
return \XoopsModules\Xoositemap\Preferences::getInstance()->getConfig();
* Get an Object Handler
* @param string $name name of handler to load
* @return bool|\XoopsObjectHandler|\XoopsPersistableObjectHandler
public function getHandler($name)
$ret = false;
$ret
// /** @var Connection $db */
$db = \XoopsDatabaseFactory::getConnection();
$class = '\\XoopsModules\\' . ucfirst(mb_strtolower(basename(dirname(__DIR__)))) . '\\' . $name . 'Handler';
$ret = new $class($db);
return $ret;