29 if (!isset(self::$renderer[$a_context_obj_type]))
31 $obj_def = $DIC[
"objDefinition"];
33 $comp = $obj_def->getComponentForType($a_context_obj_type);
34 $class = $obj_def->getClassName($a_context_obj_type);
36 $class =
"il" . $class .
"NewsRendererGUI";
37 $type_renderer_path =
"./" . $comp .
"/classes/class." . $class .
".php";
38 if (is_file($type_renderer_path))
40 include_once($type_renderer_path);
45 include_once(
"./Services/News/classes/class.ilNewsDefaultRendererGUI.php");
48 self::$renderer[$a_context_obj_type] = $rend;
51 return self::$renderer[$a_context_obj_type];
Create styles array
The data for the language used.
static getRenderer($a_context_obj_type)
Get renderer.