46 $rendered_content =
null;
49 if ($updated !==
true) {
50 $this->log->debug(print_r($updated,
true));
51 if (is_array($updated)) {
53 foreach ($updated as $msg) {
55 $error .= implode(
"<br />", $msg);
60 } elseif (is_string($updated)) {
63 $error = print_r($updated,
true);
67 $rendered_content = $this->getParagraphOutput($page_gui, $pcid);
71 $data = new \stdClass();
72 $data->renderedContent = $rendered_content;
95 $rendered_content =
null;
98 if ($updated !==
true) {
99 if (is_array($updated)) {
100 $error = implode(
"<br />", $updated);
101 } elseif (is_string($updated)) {
104 $error = print_r($updated,
true);
107 foreach ($pcids as $pcid) {
108 $rendered_content[$pcid] = $this->getParagraphOutput($page_gui, $pcid);
113 $data = new \stdClass();
114 $data->renderedContent = $rendered_content;
126 protected function getParagraphOutput(
138 $html = $DIC->ctrl()->getHTML($page_gui);
140 $pos = strrpos($html,
"<!--COPage-PageTop-->");
142 $html = substr($html, $pos + 21);
static array static setUseRelativeDates(bool $a_status)
set use relative dates
static getLogger(string $a_component_id)
Get component logger.
setOutputMode(string $a_mode=self::PRESENTATION)
getResponseObject(\ilPageObjectGUI $page_gui, $updated, string $pcid)
Get response data object.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getResponseObjectMulti(\ilPageObjectGUI $page_gui, $updated, array $pcids)
Get response data object for multi actions.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setRawPageContent(bool $a_rawpagecontent)
Set Get raw page content only.
setEnabledHref(bool $enable)
setAbstractOnly(bool $a_val, string $pcid="")
Get only abstract (first text paragraph)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)