3require_once(
"./Services/DataSet/classes/class.ilDataSet.php");
18 return array(
'5.2.0',
'5.3.0');
30 return 'http://www.ilias.de/xml/Modules/IndividualAssessment/' . $entity;
48 "description" =>
"text",
50 "recordTemplate" =>
"text",
51 "eventTimePlaceRequired" =>
"integer",
52 "file_required" =>
"integer",
54 "responsibility" =>
"text",
57 "consultation_hours" =>
"text"
86 public function readData($entity, $version, $ids)
88 $this->data = array();
89 if (!is_array($ids)) {
105 foreach ($ids as $iass_id) {
108 $settings = $obj->getSettings();
109 $info = $obj->getInfoSettings();
112 'title' => $obj->getTitle(),
113 'description' => $obj->getDescription(),
114 'content' => $settings->getContent(),
115 'recordTemplate' => $settings->getRecordTemplate(),
116 'eventTimePlaceRequired' => (
int) $settings->isEventTimePlaceRequired(),
117 'file_required' => (
int) $settings->isFileRequired(),
118 "contact" => $info->getContact(),
119 "responsibility" => $info->getResponsibility(),
120 "phone" => $info->getPhone(),
121 "mails" => $info->getMails(),
122 "consultation_hours" => $info->getConsultationHours()
124 $this->data[] =
$data;
144 assert(is_string($entity));
145 assert(is_object($types) || is_null($types));
146 assert(is_string($schema_version));
150 if ($new_id = $mapping->
getMapping(
'Services/Container',
'objs', $rec[
'id'])) {
157 $newObj->setTitle($rec[
"title"]);
158 $newObj->setDescription($rec[
"description"]);
161 (
int) $newObj->getId(),
163 $newObj->getDescription(),
165 $rec[
"recordTemplate"],
166 $rec[
'eventTimePlaceRequired'],
167 $rec[
'file_required']
171 (
int) $newObj->getId(),
173 $rec[
'responsibility'],
176 $rec[
'consultation_hours']
179 $newObj->setSettings($settings);
180 $newObj->setInfoSettings($info);
182 $newObj->updateInfo();
183 $mapping->
addMapping(
"Modules/IndividualAssessment",
"iass", $rec[
"id"], $newObj->getId());
An exception for terminatinating execution or to throw for unit testing.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
getMapping($a_comp, $a_entity, $a_old_id)
Get a mapping.
addMapping($a_comp, $a_entity, $a_old_id, $a_new_id)
Add mapping.
Individual Assessment dataset class.
readData($entity, $version, $ids)
Read data from Cache for a given entity and ID(s)
importRecord($entity, $types, array $rec, ilImportMapping $mapping, $schema_version)
Import record.
_readData($entity, $ids)
Build data array, data is read from cache except iass object itself.
getDependencies($entity, $version, $rec, $ids)
Return dependencies form entities to other entities (in our case these are all the DB relations)
getXmlNamespace($entity, $schema_version)
getTypes($entity, $version)
Map XML attributes of entities to datatypes (text, integer...)
An object carrying settings of an Individual Assessment obj beyond the standart information.
For the purpose of streamlining the grading and learning-process status definition outside of tests,...
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupType($a_id, $a_reference=false)
lookup object type