ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilNewsRendererFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilNewsRendererFactory:

Static Public Member Functions

static getRenderer (string $a_context_obj_type)
 

Static Protected Attributes

static array $renderer = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning News renderer factory

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilNewsRendererFactory.php.

Member Function Documentation

◆ getRenderer()

static ilNewsRendererFactory::getRenderer ( string  $a_context_obj_type)
static

Definition at line 28 of file class.ilNewsRendererFactory.php.

29 {
30 global $DIC;
31
32 if (!isset(self::$renderer[$a_context_obj_type])) {
33 $class_name = $DIC['objDefinition']->getClassName($a_context_obj_type);
34 $class = "il{$class_name}NewsRendererGUI";
35
36 self::$renderer[$a_context_obj_type] = class_exists($class) ? new $class() : new ilNewsDefaultRendererGUI();
37 }
38
39 return self::$renderer[$a_context_obj_type];
40 }
$renderer
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26

References $DIC, and $renderer.

Referenced by ilNewsTimelineItemGUI\render(), and ilNewsForContextBlockGUI\showNews().

+ Here is the caller graph for this function:

Field Documentation

◆ $renderer

array ilNewsRendererFactory::$renderer = []
staticprotected

Definition at line 26 of file class.ilNewsRendererFactory.php.


The documentation for this class was generated from the following file: