ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

88  : int
89  {
90  return $this->certificate_visibility;
91  }
+ Here is the caller graph for this function:

◆ getCompletionBySubmission()

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

Definition at line 83 of file Settings.php.

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

83  : bool
84  {
85  return $this->compl_by_submission;
86  }
+ Here is the caller graph for this function:

◆ getInstruction()

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

Definition at line 53 of file Settings.php.

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

53  : string
54  {
55  return $this->instruction;
56  }
+ Here is the caller graph for this function:

◆ getNrMandatoryRandom()

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

Definition at line 68 of file Settings.php.

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

68  : int
69  {
70  return $this->nr_mandatory_random;
71  }
+ Here is the caller graph for this function:

◆ getObjId()

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

Definition at line 40 of file Settings.php.

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

40  : int
41  {
42  return $this->obj_id;
43  }
+ Here is the caller graph for this function:

◆ getPassMode()

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

Definition at line 63 of file Settings.php.

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

63  : string
64  {
65  return $this->pass_mode;
66  }
+ Here is the caller graph for this function:

◆ getPassNr()

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

Definition at line 73 of file Settings.php.

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

73  : int
74  {
75  return $this->pass_nr;
76  }
+ Here is the caller graph for this function:

◆ getShowSubmissions()

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

Definition at line 78 of file Settings.php.

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

78  : bool
79  {
80  return $this->show_submissions;
81  }
+ Here is the caller graph for this function:

◆ getTimeStamp()

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

Definition at line 58 of file Settings.php.

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

58  : int
59  {
60  return $this->time_stamp;
61  }
+ Here is the caller graph for this function:

◆ getTutorFeedback()

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

Definition at line 93 of file Settings.php.

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

93  : int
94  {
95  return $this->tfeedback;
96  }
+ Here is the caller graph for this function:

◆ hasTutorFeedbackFile()

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

Definition at line 108 of file Settings.php.

References ilObjExercise\TUTOR_FEEDBACK_FILE.

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

◆ hasTutorFeedbackMail()

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

Definition at line 103 of file Settings.php.

References ilObjExercise\TUTOR_FEEDBACK_MAIL.

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

◆ hasTutorFeedbackText()

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

Definition at line 98 of file Settings.php.

References ilObjExercise\TUTOR_FEEDBACK_TEXT.

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

◆ withObjId()

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

Definition at line 45 of file Settings.php.

References $id.

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

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