Bluesteel
"myXOOPs"-Neuling
Gepostet am:08.08.2010 19:26
function &xoops_gethandler($name, $optional = false)
{
static $handlers;
$name = strtolower(trim($name));
if (!isset($handlers[$name])) {
if (file_exists($hnd_file = XOOPS_ROOT_PATH . '/kernel/' . $name . '.php')) {
require_once $hnd_file;
}
$class = 'Xoops' . ucfirst($name) . 'Handler';
if (class_exists($class)) {
$xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection();
$handlers[$name] = new $class($xoopsDB);
}
}
if (!isset($handlers[$name])) {
trigger_error('Class <strong>' . $class . '</strong> does not exist<br />Handler Name: ' . $name,
$optional ? E_USER_WARNING : E_USER_ERROR);
}
if (isset($handlers[$name])) {
return $handlers[$name];
}
$inst = false;
return $inst;
}
| Forum | Thema | Antworten | Views | Letzter Beitrag |
|---|---|---|---|---|
| Modulentwicklung | New Xoops Xcreate Module | 0 | 4204 | 26.11.2025 15:22 efkan |
| Modulentwicklung | XOOPS Custom Field Module | 1 | 1586 | 24.11.2025 11:21 Goffy |