ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilPreviewRendererPlugin.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Component/classes/class.ilPlugin.php");
5 
14 abstract class ilPreviewRendererPlugin extends ilPlugin
15 {
21  final function getComponentType()
22  {
23  return IL_COMP_SERVICE;
24  }
25 
31  final function getComponentName()
32  {
33  return "Preview";
34  }
35 
41  final function getSlot()
42  {
43  return "PreviewRenderer";
44  }
45 
51  final function getSlotId()
52  {
53  return "pvre";
54  }
55 
59  protected final function slotInit()
60  {
61  // nothing to do here
62  }
63 
64  public function getRendererClassInstance()
65  {
66  $class = "il" . $this->getPluginName();
67  $this->includeClass("class.".$class.".php");
68  return new $class();
69  }
70 }
71 ?>