3 require_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" 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->content(),
115 'recordTemplate' => $settings->recordTemplate(),
116 'eventTimePlaceRequired' => (int) $settings->eventTimePlaceRequired(),
117 'file_required' => (int) $settings->fileRequired(),
118 "contact" =>
$info->contact(),
119 "responsibility" =>
$info->responsibility(),
120 "phone" =>
$info->phone(),
121 "mails" =>
$info->mails(),
122 "consultation_hours" =>
$info->consultationHours()
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'])) {
159 $rec[
"recordTemplate"],
160 $rec[
'file_required'],
161 $rec[
'eventTimePlaceRequired']
167 $rec[
'responsibility'],
170 $rec[
'consultation_hours']
173 $newObj->setTitle($rec[
"title"]);
174 $newObj->setDescription($rec[
"description"]);
175 $newObj->setSettings($settings);
176 $newObj->setInfoSettings(
$info);
178 $newObj->updateInfo();
179 $mapping->
addMapping(
"Modules/IndividualAssessment",
"iass", $rec[
"id"], $newObj->getId());
getMapping($a_comp, $a_entity, $a_old_id)
Get a mapping.
_readData($entity, $ids)
Build data array, data is read from cache except iass object itself.
For the purpose of streamlining the grading and learning-process status definition outside of tests...
Individual Assessment dataset class.
getXmlNamespace($entity, $schema_version)
An object carrying settings of an Individual Assessment obj beyond the standart information.
A simple carrier for iass info-settings.
importRecord($entity, $types, array $rec, ilImportMapping $mapping, $schema_version)
Import record.
addMapping($a_comp, $a_entity, $a_old_id, $a_new_id)
Add mapping.
readData($entity, $version, $ids)
Read data from Cache for a given entity and ID(s)
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
getDependencies($entity, $version, $rec, $ids)
Return dependencies form entities to other entities (in our case these are all the DB relations) ...
getTypes($entity, $version)
Map XML attributes of entities to datatypes (text, integer...)
A dataset contains in data in a common structure that can be shared and transformed for different pur...