19 declare(strict_types=1);
    28         return [
'5.2.0', 
'5.3.0', 
'9.0.0'];
    31     protected function getXmlNamespace(
string $a_entity, 
string $a_schema_version): string
    33         return 'http://www.ilias.de/xml/Modules/IndividualAssessment/' . $a_entity;
    39     protected function getTypes(
string $a_entity, 
string $a_version): array
    46                     "description" => 
"text",
    48                     "recordTemplate" => 
"text",
    49                     "eventTimePlaceRequired" => 
"integer",
    50                     "file_required" => 
"integer",
    52                     "responsibility" => 
"text",
    55                     "consultation_hours" => 
"text"    77     public function readData(
string $a_entity, 
string $a_version, array $a_ids): void
    79         $this->data = array();
    90                 foreach ($ids as $iass_id) {
    91                     $iass_id = (
int) $iass_id;
    94                         $settings = $obj->getSettings();
    95                         $info = $obj->getInfoSettings();
    98                             'title' => $obj->getTitle(),
    99                             'description' => $obj->getDescription(),
   100                             'content' => $settings->getContent(),
   101                             'recordTemplate' => $settings->getRecordTemplate(),
   102                             'eventTimePlaceRequired' => (
int) $settings->isEventTimePlaceRequired(),
   103                             'file_required' => (
int) $settings->isFileRequired(),
   104                             "contact" => $info->getContact(),
   105                             "responsibility" => $info->getResponsibility(),
   106                             "phone" => $info->getPhone(),
   107                             "mails" => $info->getMails(),
   108                             "consultation_hours" => $info->getConsultationHours()
   110                         $this->data[] = 
$data;
   126         string $a_schema_version
   128         if ($a_entity == 
"iass") {
   129             if ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container', 
'objs', $a_rec[
'id'])) {
   136             $newObj->setTitle($a_rec[
"title"]);
   137             $newObj->setDescription($a_rec[
"description"]);
   142                 $newObj->getDescription(),
   144                 $a_rec[
"recordTemplate"],
   145                 $a_rec[
'eventTimePlaceRequired'] == 1,
   146                 $a_rec[
'file_required'] == 1
   152                 $a_rec[
'responsibility'],
   155                 $a_rec[
'consultation_hours']
   158             $newObj->setSettings($settings);
   159             $newObj->setInfoSettings($info);
   161             $newObj->updateInfo();
   162             $a_mapping->
addMapping(
"components/ILIAS/IndividualAssessment", 
"iass", $a_rec[
"id"], (
string) $newObj->getId());
 For the purpose of streamlining the grading and learning-process status definition outside of tests...
 
Individual Assessment dataset class. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An object carrying settings of an Individual Assessment obj beyond the standard information. 
 
getDependencies(string $a_entity, string $a_version, ?array $a_rec=null, ?array $a_ids=null)
Return dependencies form entities to other entities (in our case these are all the DB relations) ...
 
importRecord(string $a_entity, array $a_types, array $a_rec, ilImportMapping $a_mapping, string $a_schema_version)
Import record. 
 
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
 
_readData(string $entity, array $ids)
Build data array, data is read from cache except iass object itself. 
 
getXmlNamespace(string $a_entity, string $a_schema_version)
 
readData(string $a_entity, string $a_version, array $a_ids)
Read data from Cache for a given entity and ID(s) 
 
getMapping(string $a_comp, string $a_entity, string $a_old_id)
 
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id 
 
static _lookupType(int $id, bool $reference=false)
 
getTypes(string $a_entity, string $a_version)
Map XML attributes of entities to data types (text, integer...)