4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
25 return array(
"4.3.0");
36 return "http://www.ilias.de/xml/Services/Notes/" . $a_entity;
45 protected function getTypes($a_entity, $a_version)
48 if ($a_entity ==
"user_notes") {
53 "RepObjId" =>
"integer",
58 "Author" =>
"integer",
59 "CreationDate" =>
"timestamp",
63 "NoRepository" =>
"integer" 75 public function readData($a_entity, $a_version, $a_ids, $a_field =
"")
79 if (!is_array($a_ids)) {
80 $a_ids =
array($a_ids);
84 if ($a_entity ==
"user_notes") {
88 " author, note_text, creation_date, label, subject, no_repository " .
91 $ilDB->in(
"author", $a_ids,
false,
"integer") .
92 " AND obj_type = " .
$ilDB->quote(
"pd",
"text"));
117 public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
121 $usr_id = $a_mapping->getMapping(
"Services/User",
"usr", $a_rec[
"Author"]);
123 include_once(
"./Services/Notes/classes/class.ilNote.php");
127 if ((
int) $a_rec[
"RepObjId"] == 0 &&
128 $a_rec[
"ObjId"] == $a_rec[
"Author"] &&
130 $a_rec[
"ObjType"] ==
"pd") {
132 $note->setObject(
"pd", 0, $usr_id);
134 $note->setAuthor($usr_id);
135 $note->setText($a_rec[
"NoteText"]);
136 $note->setSubject($a_rec[
"Subject"]);
137 $note->setCreationDate($a_rec[
"CreationDate"]);
138 $note->setLabel($a_rec[
"Label"]);
getDirectDataFromQuery($a_query, $a_convert_to_leading_upper=true, $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
getSupportedVersions()
Get supported versions.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
getTypes($a_entity, $a_version)
Get field types for entity.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
Create styles array
The data for the language used.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.