News renderer factory.
More...
News renderer factory.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 12 of file class.ilNewsRendererFactory.php.
◆ getRenderer()
static ilNewsRendererFactory::getRenderer |
( |
|
$a_context_obj_type | ) |
|
|
static |
Get renderer.
- Parameters
-
Definition at line 25 of file class.ilNewsRendererFactory.php.
References $DIC.
Referenced by ilNewsTimelineItemGUI\render(), and ilNewsForContextBlockGUI\showNews().
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];
◆ $renderer
ilNewsRendererFactory::$renderer = array() |
|
staticprotected |
The documentation for this class was generated from the following file: