ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilIndividualAssessmentSettings Class Reference

An object carrying settings of an Individual Assessment obj beyond the standart 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

 $obj_id
 
 $title
 
 $description
 
 $content
 
 $record_template
 
 $event_time_place_required
 
 $file_required
 

Detailed Description

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 97 of file class.ilIndividualAssessmentSettings.php.

References $content.

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

97  : string
98  {
99  return $this->content;
100  }
+ Here is the caller graph for this function:

◆ getDescription()

ilIndividualAssessmentSettings::getDescription ( )

Get the content of this assessment, e.g.

corresponding topics...

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

References $description.

Referenced by ilObjIndividualAssessment\setSettings(), and toFormInput().

+ Here is the caller graph for this function:

◆ getObjId()

ilIndividualAssessmentSettings::getObjId ( )

Get the id of corresponding iass-object.

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

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 106 of file class.ilIndividualAssessmentSettings.php.

References $record_template.

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

106  : string
107  {
108  return $this->record_template;
109  }
+ Here is the caller graph for this function:

◆ getTitle()

ilIndividualAssessmentSettings::getTitle ( )

Get the content of this assessment, e.g.

corresponding topics...

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

References $title.

Referenced by ilObjIndividualAssessment\setSettings(), and toFormInput().

+ Here is the caller graph for this function:

◆ isEventTimePlaceRequired()

ilIndividualAssessmentSettings::isEventTimePlaceRequired ( )

Get the value of the checkbox event_time_place_require.

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

References $event_time_place_required.

Referenced by ilIndividualAssessmentSettingsStorageDB\createSettings(), toFormInput(), 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 122 of file class.ilIndividualAssessmentSettings.php.

References $file_required.

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

+ Here is the caller graph for this function:

◆ toFormInput()

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

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

References getContent(), getDescription(), getObjId(), getRecordTemplate(), getTitle(), isEventTimePlaceRequired(), isFileRequired(), and ilLanguage\txt().

131  : Field\Input {
132  return $input->section(
133  [
134  $input->text($lng->txt("title"))
135  ->withValue($this->getTitle())
136  ->withRequired(true),
137  $input->textarea($lng->txt("description"))
138  ->withValue($this->getDescription()),
139  $input->textarea($lng->txt("iass_content"), $lng->txt("iass_content_explanation"))
140  ->withValue($this->getContent()),
141  $input->textarea($lng->txt("iass_record_template"), $lng->txt("iass_record_template_explanation"))
142  ->withValue($this->getRecordTemplate()),
143  $input->checkbox($lng->txt("iass_event_time_place_required"), $lng->txt("iass_event_time_place_required_info"))
144  ->withValue($this->isEventTimePlaceRequired()),
145  $input->checkbox($lng->txt("iass_file_required"), $lng->txt("iass_file_required_info"))
146  ->withValue($this->isFileRequired())
147  ],
148  $lng->txt("settings")
149  )->withAdditionalTransformation(
150  $refinery->custom()->transformation(function ($value) {
151  return new \ilIndividualAssessmentSettings(
152  $this->getObjId(),
153  ...$value
154  );
155  })
156  );
157  }
isEventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
getTitle()
Get the content of this assessment, e.g.
getObjId()
Get the id of corresponding iass-object.
getContent()
Get the content of this assessment, e.g.
getDescription()
Get the content of this assessment, e.g.
$lng
isFileRequired()
Get the value of the checkbox file_required.
getRecordTemplate()
Get the record template to be used as default record with corresponding object.
+ Here is the call graph for this function:

Field Documentation

◆ $content

ilIndividualAssessmentSettings::$content
protected

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

Referenced by __construct(), and getContent().

◆ $description

ilIndividualAssessmentSettings::$description
protected

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

Referenced by __construct(), and getDescription().

◆ $event_time_place_required

ilIndividualAssessmentSettings::$event_time_place_required
protected

◆ $file_required

ilIndividualAssessmentSettings::$file_required
protected

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

Referenced by __construct(), and isFileRequired().

◆ $obj_id

ilIndividualAssessmentSettings::$obj_id
protected

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

Referenced by __construct(), and getObjId().

◆ $record_template

ilIndividualAssessmentSettings::$record_template
protected

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

Referenced by __construct(), and getRecordTemplate().

◆ $title

ilIndividualAssessmentSettings::$title
protected

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

Referenced by __construct(), and getTitle().


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