ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4include_once("./Services/Component/classes/class.ilPlugin.php");
5
14abstract class ilQuestionsPlugin extends ilPlugin
15{
16 const COMP_NAME = 'TestQuestionPool';
17 const SLOT_NAME = 'Questions';
18 const SLOT_ID = 'qst';
19
25 final public function getComponentType()
26 {
27 return IL_COMP_MODULE;
28 }
29
35 final public function getComponentName()
36 {
37 return self::COMP_NAME;
38 }
39
45 final public function getSlot()
46 {
47 return self::SLOT_NAME;
48 }
49
55 final public function getSlotId()
56 {
57 return self::SLOT_ID;
58 }
59
63 final protected function slotInit()
64 {
65 // nothing to do here
66 }
67
68 abstract public function getQuestionType();
69}
An exception for terminatinating execution or to throw for unit testing.
const IL_COMP_MODULE
Abstract parent class for all question plugin classes.
getComponentType()
Get Component Type.
getComponentName()
Get Component Name.
slotInit()
Object initialization done by slot.