24 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
97 $next_class = $ilCtrl->getNextClass();
98 $cmd = $ilCtrl->getCmd(
"getHTML");
100 return $this->
$cmd();
122 include_once(
"Services/Notes/classes/class.ilNote.php");
127 $this->
setRowTemplate(
"tpl.pd_notes_overview.html",
"Services/Notes");
135 if (count($this->notes) == 0)
153 foreach($this->notes as $note)
155 switch ($note->getLabel())
159 $alt = $lng->txt(
"note");
164 $alt = $lng->txt(
"note").
", ".$lng->txt(
"important");
169 $alt = $lng->txt(
"note").
", ".$lng->txt(
"question");
174 $alt = $lng->txt(
"note").
", ".$lng->txt(
"pro");
179 $alt = $lng->txt(
"note").
", ".$lng->txt(
"contra");
184 $target = $note->getObject();
187 "subject" => $note->getSubject(),
191 "date" => $note->getCreationDate(),
192 "id" => $note->getId(),
193 "obj_type" => $target[
"obj_type"],
194 "obj_id" => $target[
"obj_id"],
195 "rep_obj_id" => $target[
"rep_obj_id"]);
208 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
209 if (!is_object($this->note_gui))
212 $this->note_gui->enableTargets();
221 $this->tpl->setVariable(
"VAL_SUBJECT", $a_set[
"subject"]);
225 $ilCtrl->setParameter($this,
"rel_obj", $a_set[
"rep_obj_id"]);
226 $ilCtrl->setParameter($this,
"note_id", $a_set[
"id"]);
228 $this->tpl->setVariable(
"HREF_SHOW_NOTE",
229 $ilCtrl->getLinkTarget($this,
"showNote"));
230 $this->tpl->setVariable(
"IMG_NOTE", $a_set[
"img"]);
231 $this->tpl->setVariable(
"ALT_NOTE", $a_set[
"alt"]);
232 $ilCtrl->clearParameters($this);
237 $this->tpl->setCurrentBlock(
"details");
238 $this->tpl->setVariable(
"NOTE_TEXT", $a_set[
"text"]);
239 $this->tpl->setVariable(
"VAL_DATE",
241 $this->tpl->parseCurrentBlock();
244 $this->note_gui->showTargets($this->tpl, $a_set[
"rep_obj_id"], $a_set[
"id"],
245 $a_set[
"obj_type"], $a_set[
"obj_id"]);
248 $this->tpl->setCurrentBlock(
"edit_note");
249 $this->tpl->setVariable(
"TXT_EDIT_NOTE", $lng->txt(
"edit"));
250 $ilCtrl->setParameterByClass(
"ilnotegui",
"rel_obj", $a_set[
"rep_obj_id"]);
251 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_id", $a_set[
"id"]);
252 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_type",
IL_NOTE_PRIVATE);
253 $this->tpl->setVariable(
"LINK_EDIT_NOTE",
254 $ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilpdnotesgui",
"ilnotegui"),
"editNoteForm")
256 $this->tpl->parseCurrentBlock();
258 $ilCtrl->clearParametersByClass(
"ilnotegui");
268 return '<div class="small">'.((int) count($this->notes)).
" ".$lng->txt(
"notes").
"</div>";
278 include_once(
"./Services/Notes/classes/class.ilNoteGUI.php");
280 $note_gui->enableTargets();
281 include_once(
"./Services/PersonalDesktop/classes/class.ilPDContentBlockGUI.php");
283 $content_block->setContent($note_gui->getPDNoteHTML(
$_GET[
"note_id"]));
284 $content_block->setTitle($lng->txt(
"note"));
285 $content_block->setColSpan(2);
287 $content_block->addHeaderCommand($ilCtrl->getLinkTargetByClass(
"ilpersonaldesktopgui",
"show"),
288 $lng->txt(
"selected_items_back"));
290 return $content_block->getHTML();