notification_types[$nsname] = $className; $this->notification_types_path[$nsname] = $path; } // FIXME insert into notification instances {PERF} function getHandler($nsname) { if (!array_key_exists($nsname, $this->notification_types)) { return null; } else { if (array_key_exists($nsname, $this->notification_types_path)) { $path = $this->notification_types_path[$nsname]; if ($path) { if (file_exists($path)) { require_once($path); } } } return new $this->notification_types[$nsname]; } } } ?>