ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilIndividualAssessmentSettings.php
Go to the documentation of this file.
1 <?php
10 {
11  const DEF_CONTENT = "";
12  const DEF_RECORD_TEMPLATE = "";
13 
17  protected $content;
18 
22  protected $record_template;
23 
28 
32  protected $file_required;
33 
34  public function __construct(
36  $content = null,
37  $record_template = null,
39  $file_required = false
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  }
47 
53  public function getId()
54  {
55  return $this->id;
56  }
57 
63  public function content()
64  {
65  return $this->content;
66  }
67 
74  public function recordTemplate()
75  {
77  }
78 
84  public function eventTimePlaceRequired()
85  {
87  }
88 
94  public function fileRequired()
95  {
96  return $this->file_required;
97  }
98 
99 
106  public function setContent($content)
107  {
108  assert('is_string($content)');
109  $this->content = $content;
110  return $this;
111  }
112 
121  {
122  assert('is_string($record_template)');
123  $this->record_template = $record_template;
124  return $this;
125  }
126 
134  {
135  assert('is_bool($event_time_place_required)');
136  $this->event_time_place_required = $event_time_place_required;
137  return $this;
138  }
139 
147  {
148  assert('is_bool($file_required)');
149  $this->file_required = $file_required;
150  return $this;
151  }
152 }
For the purpose of streamlining the grading and learning-process status definition outside of tests...
__construct(ilObjIndividualAssessment $iass, $content=null, $record_template=null, $event_time_place_required=false, $file_required=false)
An object carrying settings of an Individual Assessment obj beyond the standart information.
eventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
if(!array_key_exists('StateId', $_REQUEST)) $id
setFileRequired($file_required)
Set the value of the checkbox file_required.
setContent($content)
Set the content of this assessment, e.g.
recordTemplate()
Get the record template to be used as default record with corresponding object.
setEventTimePlaceRequired($event_time_place_required)
Set the value of the checkbox event_time_place_require.
getId()
get object id public
content()
Get the content of this assessment, e.g.
getId()
Get the id of corrwsponding iass-object.
fileRequired()
Get the value of the checkbox file_required.
setRecordTemplate($record_template)
Get the record template to be used as default record with corresponding object.