/** * Finalizing output processing * * @param string $a_output * @return string */ public function postOutputProcessing($a_output) { // You can use this to parse placeholders and the like before outputting // user view (IL_PAGE_PRESENTATION?) if ($this->getOutputMode() == IL_PAGE_PREVIEW) { include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; // :TODO: find a suitable presentation for matched placeholders $allp = ilDataCollectionRecordViewViewdefinition::getAvailablePlaceholders($this->table_id, true); foreach ($allp as $id => $item) { $parsed_item = new ilTextInputGUI("", "fields[" . $item->getId() . "]"); $parsed_item = $parsed_item->getToolbarHTML(); $a_output = str_replace($id, $item->getTitle() . ": " . $parsed_item, $a_output); } } else { if ($this->getOutputMode() == IL_PAGE_EDIT) { $allp = ilDataCollectionRecordViewViewdefinition::getAvailablePlaceholders($this->table_id); // :TODO: find a suitable markup for matched placeholders foreach ($allp as $item) { $a_output = str_replace($item, "<span style=\"color:green\">" . $item . "</span>", $a_output); } } } return $a_output; }