ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilQuestionsPlugin.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once ("./Services/Component/classes/class.ilPlugin.php");
5 
14 abstract class ilQuestionsPlugin extends ilPlugin {
15 
16  const COMP_NAME = 'TestQuestionPool';
17  const SLOT_NAME = 'Questions';
18  const SLOT_ID = 'qst';
19 
25  final function getComponentType() {
26  return IL_COMP_MODULE;
27  }
28 
34  final function getComponentName() {
35  return self::COMP_NAME;
36  }
37 
43  final function getSlot() {
44  return self::SLOT_NAME;
45  }
46 
52  final function getSlotId() {
53  return self::SLOT_ID;
54  }
55 
59  protected final function slotInit() {
60  // nothing to do here
61  }
62 
63  abstract function getQuestionType();
64 }
65 ?>
Abstract parent class for all question plugin classes.
getComponentName()
Get Component Name.
const IL_COMP_MODULE
slotInit()
Object initialization done by slot.
getComponentType()
Get Component Type.