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

References $content.

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

83  : string
84  {
85  return $this->content;
86  }
+ 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.

References $description.

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

75  : string
76  {
77  return $this->description;
78  }
+ 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.

References $obj_id.

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

59  : int
60  {
61  return $this->obj_id;
62  }
+ 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.

References $record_template.

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

92  : string
93  {
95  }
+ 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.

References $title.

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

67  : string
68  {
69  return $this->title;
70  }
+ 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.

References $event_time_place_required.

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

100  : bool
101  {
103  }
+ 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.

References $file_required.

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

108  : bool
109  {
110  return $this->file_required;
111  }
+ 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.

References getContent(), getDescription(), getObjId(), getRecordTemplate(), getTitle(), isEventTimePlaceRequired(), isFileRequired(), ilLanguage\txt(), ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation(), and ILIAS\UI\Implementation\Component\Input\withValue().

117  : \ILIAS\UI\Component\Input\Container\Form\FormInput {
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"))
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  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
isEventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
An object carrying settings of an Individual Assessment obj beyond the standard information.
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.
withValue($value)
Get an input like this with another value displayed on the client side.
Definition: Group.php:61
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

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: