ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilIndividualAssessmentSettings Class Reference

An object carrying settings of an Individual Assessment obj beyond the standard information. More...

+ Collaboration diagram for ilIndividualAssessmentSettings:

Public Member Functions

 __construct (int $obj_id, string $title, string $description, string $content, string $record_template, bool $event_time_place_required, bool $file_required)
 
 getObjId ()
 Get the id of corresponding iass-object. More...
 
 getTitle ()
 Get the content of this assessment, e.g. More...
 
 getDescription ()
 Get the content of this assessment, e.g. More...
 
 getContent ()
 Get the content of this assessment, e.g. More...
 
 getRecordTemplate ()
 Get the record template to be used as default record with corresponding object. More...
 
 isEventTimePlaceRequired ()
 Get the value of the checkbox event_time_place_require. More...
 
 isFileRequired ()
 Get the value of the checkbox file_required. More...
 
 toFormInput (Field\Factory $input, ilLanguage $lng, Refinery $refinery)
 

Protected Attributes

int $obj_id
 
string $title
 
string $description
 
string $content
 
string $record_template
 
bool $event_time_place_required
 
bool $file_required
 

Detailed Description

An object carrying settings of an Individual Assessment obj beyond the standard information.

Definition at line 28 of file class.ilIndividualAssessmentSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilIndividualAssessmentSettings::__construct ( int  $obj_id,
string  $title,
string  $description,
string  $content,
string  $record_template,
bool  $event_time_place_required,
bool  $file_required 
)

Member Function Documentation

◆ getContent()

ilIndividualAssessmentSettings::getContent ( )

Get the content of this assessment, e.g.

corresponding topics...

Definition at line 83 of file class.ilIndividualAssessmentSettings.php.

83 : string
84 {
85 return $this->content;
86 }

References $content.

Referenced by ilObjIndividualAssessment\cloneObject(), ilIndividualAssessmentSettingsStorageDB\createSettings(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ getDescription()

ilIndividualAssessmentSettings::getDescription ( )

Get the content of this assessment, e.g.

corresponding topics...

Definition at line 75 of file class.ilIndividualAssessmentSettings.php.

75 : string
76 {
77 return $this->description;
78 }

References $description.

Referenced by ilObjIndividualAssessment\setSettings().

+ Here is the caller graph for this function:

◆ getObjId()

ilIndividualAssessmentSettings::getObjId ( )

Get the id of corresponding iass-object.

Definition at line 59 of file class.ilIndividualAssessmentSettings.php.

59 : int
60 {
61 return $this->obj_id;
62 }

References $obj_id.

Referenced by ilIndividualAssessmentSettingsStorageDB\createSettings(), toFormInput(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ getRecordTemplate()

ilIndividualAssessmentSettings::getRecordTemplate ( )

Get the record template to be used as default record with corresponding object.

Definition at line 92 of file class.ilIndividualAssessmentSettings.php.

92 : string
93 {
95 }

References $record_template.

Referenced by ilObjIndividualAssessment\cloneObject(), ilIndividualAssessmentSettingsStorageDB\createSettings(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ getTitle()

ilIndividualAssessmentSettings::getTitle ( )

Get the content of this assessment, e.g.

corresponding topics...

Definition at line 67 of file class.ilIndividualAssessmentSettings.php.

67 : string
68 {
69 return $this->title;
70 }

References $title.

Referenced by ilObjIndividualAssessment\setSettings().

+ Here is the caller graph for this function:

◆ isEventTimePlaceRequired()

ilIndividualAssessmentSettings::isEventTimePlaceRequired ( )

Get the value of the checkbox event_time_place_require.

Definition at line 100 of file class.ilIndividualAssessmentSettings.php.

100 : bool
101 {
103 }

References $event_time_place_required.

Referenced by ilObjIndividualAssessment\cloneObject(), ilIndividualAssessmentSettingsStorageDB\createSettings(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ isFileRequired()

ilIndividualAssessmentSettings::isFileRequired ( )

Get the value of the checkbox file_required.

Definition at line 108 of file class.ilIndividualAssessmentSettings.php.

108 : bool
109 {
111 }

References $file_required.

Referenced by ilObjIndividualAssessment\cloneObject(), ilIndividualAssessmentSettingsStorageDB\createSettings(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ toFormInput()

ilIndividualAssessmentSettings::toFormInput ( Field\Factory  $input,
ilLanguage  $lng,
Refinery  $refinery 
)

Definition at line 113 of file class.ilIndividualAssessmentSettings.php.

118 return $input->section(
119 [
120 $input->text($lng->txt("title"))
121 ->withValue($this->getTitle())
122 ->withRequired(true),
123 $input->textarea($lng->txt("description"))
124 ->withValue($this->getDescription()),
125 $input->textarea($lng->txt("iass_content"), $lng->txt("iass_content_explanation"))
126 ->withValue($this->getContent()),
127 $input->textarea($lng->txt("iass_record_template"), $lng->txt("iass_record_template_explanation"))
128 ->withValue($this->getRecordTemplate()),
129 $input->checkbox($lng->txt("iass_event_time_place_required"), $lng->txt("iass_event_time_place_required_info"))
130 ->withValue($this->isEventTimePlaceRequired()),
131 $input->checkbox($lng->txt("iass_file_required"), $lng->txt("iass_file_required_info"))
132 ->withValue($this->isFileRequired())
133 ],
134 $lng->txt("settings")
136 $refinery->custom()->transformation(function ($value) {
138 $this->getObjId(),
139 ...$value
140 );
141 })
142 );
143 }
An object carrying settings of an Individual Assessment obj beyond the standard information.
getObjId()
Get the id of corresponding iass-object.
This describes inputs that can be used in forms.
Definition: FormInput.php:33
withAdditionalTransformation(Transformation $trafo)
Apply a transformation to the content of the input.
global $lng
Definition: privfeed.php:31

References getObjId().

+ Here is the call graph for this function:

Field Documentation

◆ $content

string ilIndividualAssessmentSettings::$content
protected

Definition at line 33 of file class.ilIndividualAssessmentSettings.php.

Referenced by __construct(), and getContent().

◆ $description

string ilIndividualAssessmentSettings::$description
protected

Definition at line 32 of file class.ilIndividualAssessmentSettings.php.

Referenced by __construct(), and getDescription().

◆ $event_time_place_required

bool ilIndividualAssessmentSettings::$event_time_place_required
protected

◆ $file_required

bool ilIndividualAssessmentSettings::$file_required
protected

Definition at line 36 of file class.ilIndividualAssessmentSettings.php.

Referenced by __construct(), and isFileRequired().

◆ $obj_id

int ilIndividualAssessmentSettings::$obj_id
protected

Definition at line 30 of file class.ilIndividualAssessmentSettings.php.

Referenced by __construct(), and getObjId().

◆ $record_template

string ilIndividualAssessmentSettings::$record_template
protected

Definition at line 34 of file class.ilIndividualAssessmentSettings.php.

Referenced by __construct(), and getRecordTemplate().

◆ $title

string ilIndividualAssessmentSettings::$title
protected

Definition at line 31 of file class.ilIndividualAssessmentSettings.php.

Referenced by __construct(), and getTitle().


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