ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 (ilObjIndividualAssessment $iass, $content=null, $record_template=null, $event_time_place_required=false, $file_required=false)
 
 getId ()
 Get the id of corrwsponding iass-object. More...
 
 content ()
 Get the content of this assessment, e.g. More...
 
 recordTemplate ()
 Get the record template to be used as default record with corresponding object. More...
 
 eventTimePlaceRequired ()
 Get the value of the checkbox event_time_place_require. More...
 
 fileRequired ()
 Get the value of the checkbox file_required. More...
 
 setContent ($content)
 Set the content of this assessment, e.g. More...
 
 setRecordTemplate ($record_template)
 Get the record template to be used as default record with corresponding object. More...
 
 setEventTimePlaceRequired ($event_time_place_required)
 Set the value of the checkbox event_time_place_require. More...
 
 setFileRequired ($file_required)
 Set the value of the checkbox file_required. More...
 

Data Fields

const DEF_CONTENT = ""
 
const DEF_RECORD_TEMPLATE = ""
 

Protected Attributes

 $content
 
 $record_template
 
 $event_time_place_required
 
 $file_required
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilIndividualAssessmentSettings::__construct ( ilObjIndividualAssessment  $iass,
  $content = null,
  $record_template = null,
  $event_time_place_required = false,
  $file_required = false 
)

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

References $content, $event_time_place_required, $file_required, $record_template, content(), and ilObject\getId().

40  {
41  $this->id = $iass->getId();
42  $this->content = $content !== null ? $content : self::DEF_CONTENT;
43  $this->record_template = $record_template !== null ? $record_template : self::DEF_RECORD_TEMPLATE;
44  $this->event_time_place_required = $event_time_place_required;
45  $this->file_required = $file_required;
46  }
getId()
get object id public
content()
Get the content of this assessment, e.g.
+ Here is the call graph for this function:

Member Function Documentation

◆ content()

ilIndividualAssessmentSettings::content ( )

Get the content of this assessment, e.g.

corresponding topics...

Returns
string

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

References $content.

Referenced by __construct(), ilIndividualAssessmentSettingsStorageDB\createSettings(), ilIndividualAssessmentSettingsGUI\fillForm(), setContent(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ eventTimePlaceRequired()

ilIndividualAssessmentSettings::eventTimePlaceRequired ( )

Get the value of the checkbox event_time_place_require.

Returns
integer

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

References $event_time_place_required.

Referenced by ilIndividualAssessmentSettingsStorageDB\createSettings(), ilIndividualAssessmentSettingsGUI\fillForm(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ fileRequired()

ilIndividualAssessmentSettings::fileRequired ( )

Get the value of the checkbox file_required.

Returns
integer

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

References $file_required.

Referenced by ilIndividualAssessmentSettingsStorageDB\createSettings(), ilIndividualAssessmentSettingsGUI\fillForm(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ getId()

ilIndividualAssessmentSettings::getId ( )

Get the id of corrwsponding iass-object.

Returns
int|string

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

References $id.

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

54  {
55  return $this->id;
56  }
if(!array_key_exists('StateId', $_REQUEST)) $id
+ Here is the caller graph for this function:

◆ recordTemplate()

ilIndividualAssessmentSettings::recordTemplate ( )

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

Returns
string

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

References $record_template.

Referenced by ilIndividualAssessmentSettingsStorageDB\createSettings(), ilIndividualAssessmentSettingsGUI\fillForm(), and ilIndividualAssessmentSettingsStorageDB\updateSettings().

+ Here is the caller graph for this function:

◆ setContent()

ilIndividualAssessmentSettings::setContent (   $content)

Set the content of this assessment, e.g.

corresponding topics...

Parameters
string$content
Returns
ilIndividualAssessment $this

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

References $content, and content().

107  {
108  assert(is_string($content));
109  $this->content = $content;
110  return $this;
111  }
content()
Get the content of this assessment, e.g.
+ Here is the call graph for this function:

◆ setEventTimePlaceRequired()

ilIndividualAssessmentSettings::setEventTimePlaceRequired (   $event_time_place_required)

Set the value of the checkbox event_time_place_require.

Parameters
bool$event_time_place_require
Returns
ilManualAssessment $this

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

References $event_time_place_required.

134  {
135  assert(is_bool($event_time_place_required));
136  $this->event_time_place_required = $event_time_place_required;
137  return $this;
138  }

◆ setFileRequired()

ilIndividualAssessmentSettings::setFileRequired (   $file_required)

Set the value of the checkbox file_required.

Parameters
bool$file_require
Returns
ilManualAssessment $this

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

References $file_required.

147  {
148  assert(is_bool($file_required));
149  $this->file_required = $file_required;
150  return $this;
151  }

◆ setRecordTemplate()

ilIndividualAssessmentSettings::setRecordTemplate (   $record_template)

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

Parameters
string$record_template
Returns
ilIndividualAssessment $this

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

References $record_template.

121  {
122  assert(is_string($record_template));
123  $this->record_template = $record_template;
124  return $this;
125  }

Field Documentation

◆ $content

ilIndividualAssessmentSettings::$content
protected

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

Referenced by __construct(), content(), and setContent().

◆ $event_time_place_required

ilIndividualAssessmentSettings::$event_time_place_required
protected

◆ $file_required

ilIndividualAssessmentSettings::$file_required
protected

◆ $record_template

ilIndividualAssessmentSettings::$record_template
protected

◆ DEF_CONTENT

const ilIndividualAssessmentSettings::DEF_CONTENT = ""

◆ DEF_RECORD_TEMPLATE


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