/** * Return a {@link MUNGER} for the given object. * * @param NAMED_OBJECT $obj * @param OBJECT_RENDERER_OPTIONS $options * @return MUNGER * @access private */ protected function _make_formatter($obj, $options) { if ($this->_is_html($options)) { return $obj->html_formatter(); } return $obj->plain_text_formatter(); }
/** * Emit a piece of text as plain text. * Used standard formatting provided by the {@link NAMED_OBJECT::html_formatter()} * and settings from {@link _prepare_formatter()}. * * @param NAMED_OBJECT $obj * @param string $text * @private */ protected function _echo_text_as_html($obj, $text) { if ($text) { $munger = $obj->html_formatter(); $this->_prepare_formatter($munger); ?> <div class="text-flow wide"> <?php echo $munger->transform($text, $obj); ?> </div> <?php } }