ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilAsqQuestion.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
13 interface ilAsqQuestion
14 {
18  public function setParentId($parentId);
19 
23  public function getParentId(): int;
24 
28  public function setId($questionId);
29 
33  public function getId(): int;
34 
38  public function getTitle(): string;
39 
43  public function getComment(): string;
44 
48  public function getOwner(): int;
49 
53  public function getQuestionType(): string;
54 
58  public function getQuestionText(): string;
59 
63  public function getPoints(): float;
64 
68  public function getEstimatedWorkingTime(): string;
69 
73  public function load();
74 
78  public function save();
79 
83  public function delete();
84 
88  public function fromQtiItem(ilQTIItem $qtiItem);
89 
93  public function toQtiXML(): string;
94 
98  public function isComplete(): bool;
99 
103  public function getBestSolution(): ilAsqQuestionSolution;
104 
109 
113  public function toJSON(): string;
114 
118  public function setOfflineExportImagePath($offlineExportImagePath = null);
119 
123  public function setOfflineExportPagePresentationMode($offlineExportPagePresentationMode = 'presentation');
124 }
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:27
setParentId($parentId)
fromQtiItem(ilQTIItem $qtiItem)
getEstimatedWorkingTime()
setId($questionId)
getSuggestedSolutionOutput()
load()
Loads question data.