37 $rendered_content = null;
40 if ($updated !==
true) {
41 $this->log->debug(print_r($updated,
true));
42 if (is_array($updated)) {
44 foreach ($updated as $msg) {
46 $error.= implode(
"<br />", $msg);
48 $error.= (string) $msg;
51 } elseif (is_string($updated)) {
54 $error = print_r($updated,
true);
58 $rendered_content = $this->getParagraphOutput($page_gui, $pcid);
62 $data = new \stdClass();
63 $data->renderedContent = $rendered_content;
64 $data->error = $error;
65 $data->last_update = null;
85 $rendered_content = null;
88 if ($updated !==
true) {
89 if (is_array($updated)) {
90 $error = implode(
"<br />", $updated);
91 } elseif (is_string($updated)) {
94 $error = print_r($updated,
true);
97 foreach ($pcids as $pcid) {
98 $rendered_content[$pcid] = $this->getParagraphOutput($page_gui, $pcid);
103 $data = new \stdClass();
104 $data->renderedContent = $rendered_content;
105 $data->error = $error;
106 $data->last_update = null;
121 protected function getParagraphOutput(\
ilPageObjectGUI $page_gui, $pcid)
131 $html = $DIC->ctrl()->getHTML($page_gui);
133 $pos = strrpos($html,
"<!--COPage-PageTop-->");
135 $html = substr($html, $pos + 21);
getPageObject()
Get Page Object.
getResponseObjectMulti(\ilPageObjectGUI $page_gui, $updated, array $pcids)
Get reponse data object.
static setUseRelativeDates($a_status)
set use relative dates
setDefaultLinkXml()
Set standard link xml.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setEnabledHref(bool $enable)
setRawPageContent($a_rawpagecontent)
Set Get raw page content only.
__construct()
Constructor.
setAbstractOnly($a_val, $pcid="")
Set abstract only.
static getLogger($a_component_id)
Get component logger.
setOutputMode($a_mode=self::PRESENTATION)
Set Output Mode.
getResponseObject(\ilPageObjectGUI $page_gui, $updated, string $pcid)
Get reponse data object.