ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilAsqQuestion.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 interface ilAsqQuestion
13 {
17  public function setParentId($parentId);
18 
22  public function getParentId() : int;
23 
27  public function setId($questionId);
28 
32  public function getId() : int;
33 
37  public function getTitle() : string;
38 
42  public function getComment() : string;
43 
47  public function getOwner() : int;
48 
52  public function getQuestionType() : string;
53 
57  public function getQuestionText() : string;
58 
62  public function getPoints() : float;
63 
67  public function getEstimatedWorkingTime() : string;
68 
72  public function load();
73 
77  public function save();
78 
82  public function delete();
83 
87  public function fromQtiItem(ilQTIItem $qtiItem);
88 
92  public function toQtiXML() : string;
93 
97  public function isComplete() : bool;
98 
102  public function getBestSolution() : ilAsqQuestionSolution;
103 
108 
112  public function toJSON() : string;
113 
117  public function setOfflineExportImagePath($offlineExportImagePath = null);
118 
122  public function setOfflineExportPagePresentationMode($offlineExportPagePresentationMode = 'presentation');
123 }
setOfflineExportPagePresentationMode($offlineExportPagePresentationMode='presentation')
setOfflineExportImagePath($offlineExportImagePath=null)
save()
Save question data.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
setParentId($parentId)
fromQtiItem(ilQTIItem $qtiItem)
getEstimatedWorkingTime()
setId($questionId)
getSuggestedSolutionOutput()
load()
Loads question data.