ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Exercise\Settings\Settings Class Reference
+ Collaboration diagram for ILIAS\Exercise\Settings\Settings:

Public Member Functions

 __construct (protected int $obj_id, protected string $instruction, protected int $time_stamp, protected string $pass_mode, protected int $nr_mandatory_random, protected int $pass_nr, protected bool $show_submissions, protected bool $compl_by_submission, protected int $certificate_visibility, protected int $tfeedback)
 
 getObjId ()
 
 withObjId (int $id)
 
 getInstruction ()
 
 getTimeStamp ()
 
 getPassMode ()
 
 getNrMandatoryRandom ()
 
 getPassNr ()
 
 getShowSubmissions ()
 
 getCompletionBySubmission ()
 
 getCertificateVisibility ()
 
 getTutorFeedback ()
 
 hasTutorFeedbackText ()
 
 hasTutorFeedbackMail ()
 
 hasTutorFeedbackFile ()
 

Detailed Description

Definition at line 23 of file Settings.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Exercise\Settings\Settings::__construct ( protected int  $obj_id,
protected string  $instruction,
protected int  $time_stamp,
protected string  $pass_mode,
protected int  $nr_mandatory_random,
protected int  $pass_nr,
protected bool  $show_submissions,
protected bool  $compl_by_submission,
protected int  $certificate_visibility,
protected int  $tfeedback 
)

Definition at line 25 of file Settings.php.

36 {
37 }

Member Function Documentation

◆ getCertificateVisibility()

ILIAS\Exercise\Settings\Settings::getCertificateVisibility ( )

Definition at line 88 of file Settings.php.

88 : int
89 {
90 return $this->certificate_visibility;
91 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getCompletionBySubmission()

ILIAS\Exercise\Settings\Settings::getCompletionBySubmission ( )

Definition at line 83 of file Settings.php.

83 : bool
84 {
85 return $this->compl_by_submission;
86 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getInstruction()

ILIAS\Exercise\Settings\Settings::getInstruction ( )

Definition at line 53 of file Settings.php.

53 : string
54 {
55 return $this->instruction;
56 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getNrMandatoryRandom()

ILIAS\Exercise\Settings\Settings::getNrMandatoryRandom ( )

Definition at line 68 of file Settings.php.

68 : int
69 {
70 return $this->nr_mandatory_random;
71 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getObjId()

ILIAS\Exercise\Settings\Settings::getObjId ( )

Definition at line 40 of file Settings.php.

40 : int
41 {
42 return $this->obj_id;
43 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getPassMode()

ILIAS\Exercise\Settings\Settings::getPassMode ( )

Definition at line 63 of file Settings.php.

63 : string
64 {
65 return $this->pass_mode;
66 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getPassNr()

ILIAS\Exercise\Settings\Settings::getPassNr ( )

Definition at line 73 of file Settings.php.

73 : int
74 {
75 return $this->pass_nr;
76 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getShowSubmissions()

ILIAS\Exercise\Settings\Settings::getShowSubmissions ( )

Definition at line 78 of file Settings.php.

78 : bool
79 {
80 return $this->show_submissions;
81 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getTimeStamp()

ILIAS\Exercise\Settings\Settings::getTimeStamp ( )

Definition at line 58 of file Settings.php.

58 : int
59 {
60 return $this->time_stamp;
61 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ getTutorFeedback()

ILIAS\Exercise\Settings\Settings::getTutorFeedback ( )

Definition at line 93 of file Settings.php.

93 : int
94 {
95 return $this->tfeedback;
96 }

Referenced by ILIAS\Exercise\Settings\SettingsDBRepository\create(), and ILIAS\Exercise\Settings\SettingsDBRepository\update().

+ Here is the caller graph for this function:

◆ hasTutorFeedbackFile()

ILIAS\Exercise\Settings\Settings::hasTutorFeedbackFile ( )

Definition at line 108 of file Settings.php.

108 : bool
109 {
110 return (bool) ($this->tfeedback & \ilObjExercise::TUTOR_FEEDBACK_FILE);
111 }

References ilObjExercise\TUTOR_FEEDBACK_FILE.

◆ hasTutorFeedbackMail()

ILIAS\Exercise\Settings\Settings::hasTutorFeedbackMail ( )

Definition at line 103 of file Settings.php.

103 : bool
104 {
105 return (bool) ($this->tfeedback & \ilObjExercise::TUTOR_FEEDBACK_MAIL);
106 }

References ilObjExercise\TUTOR_FEEDBACK_MAIL.

◆ hasTutorFeedbackText()

ILIAS\Exercise\Settings\Settings::hasTutorFeedbackText ( )

Definition at line 98 of file Settings.php.

98 : bool
99 {
100 return (bool) ($this->tfeedback & \ilObjExercise::TUTOR_FEEDBACK_TEXT);
101 }

References ilObjExercise\TUTOR_FEEDBACK_TEXT.

◆ withObjId()

ILIAS\Exercise\Settings\Settings::withObjId ( int  $id)

Definition at line 45 of file Settings.php.

45 : self
46 {
47 $clone = clone $this;
48 $clone->obj_id = $id;
49 return $clone;
50 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.


The documentation for this class was generated from the following file: