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 |
---|---|---|---|---|
OffOffTopic | [Wichtig] Übernahme myXOOPS | 0 | 491 | 11.12.2023 18:57 alfred |
Die Installation und Administration von XOOPS 2.5.X | [Offen] Upgrade 2.5.11 | 3 | 2202 | 07.05.2023 07:03 Goffy |