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 = "";
13
17 protected $content;
18
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 {
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}
An exception for terminatinating execution or to throw for unit testing.
An object carrying settings of an Individual Assessment obj beyond the standart information.
getId()
Get the id of corrwsponding iass-object.
content()
Get the content of this assessment, e.g.
setRecordTemplate($record_template)
Get the record template to be used as default record with corresponding object.
eventTimePlaceRequired()
Get the value of the checkbox event_time_place_require.
setContent($content)
Set the content of this assessment, e.g.
fileRequired()
Get the value of the checkbox file_required.
setFileRequired($file_required)
Set the value of the checkbox file_required.
setEventTimePlaceRequired($event_time_place_required)
Set the value of the checkbox event_time_place_require.
recordTemplate()
Get the record template to be used as default record with corresponding object.
__construct(ilObjIndividualAssessment $iass, $content=null, $record_template=null, $event_time_place_required=false, $file_required=false)
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
getId()
get object id @access public
if(!array_key_exists('StateId', $_REQUEST)) $id