29 if (!isset(self::$renderer[$a_context_obj_type])) {
30 $obj_def = $DIC[
"objDefinition"];
32 $comp = $obj_def->getComponentForType($a_context_obj_type);
33 $class = $obj_def->getClassName($a_context_obj_type);
35 $class =
"il" . $class .
"NewsRendererGUI";
36 $type_renderer_path =
"./" . $comp .
"/classes/class." . $class .
".php";
37 if (is_file($type_renderer_path)) {
38 include_once($type_renderer_path);
41 include_once(
"./Services/News/classes/class.ilNewsDefaultRendererGUI.php");
44 self::$renderer[$a_context_obj_type] = $rend;
47 return self::$renderer[$a_context_obj_type];
static getRenderer($a_context_obj_type)
Get renderer.