public function toString() { return $this->wrap(parent::toString(), 'p', $this->param); }
public function toString() { if ($this->is_guiedit) { $text = parent::toString(); $text = preg_replace_callback("/___COMMENT___(\n___COMMENT___)*/", array(&$this, 'comment'), $text); return $text . "\n"; } // #contents return preg_replace_callback('/<#_contents_>/', array($this, 'replaceContents'), parent::toString()); }
public function toString() { if ($this->rowspan == 0 || $this->colspan == 0) { return ''; } $param = $this->is_blank === true ? ' class="blank-cell' : ''; if ($this->rowspan > 1) { $param .= ' rowspan="' . $this->rowspan . '"'; } if ($this->colspan > 1) { $param .= ' colspan="' . $this->colspan . '"'; unset($this->style['width']); } if (!empty($this->lang)) { $param .= ' lang="' . $this->lang . '"'; } if (!empty($this->style)) { $style = ''; foreach ($this->style as $key => $value) { $style .= $key . ':' . $value . ';'; } $param .= ' style="' . strtolower(Utility::htmlsc($style)) . '"'; } return $this->wrap(parent::toString(), $this->tag, $param, FALSE); }
public function toString() { return $this->wrap(parent::toString(), $this->tag, $this->style); }
public function toString() { return $this->wrap(parent::toString(), $this->head); }
public function toString() { return $this->wrap(parent::toString(), 'blockquote'); }
public function toString() { list($this->text, $fixed_anchor) = Rules::getHeading($this->text, FALSE); $id = empty($fixed_anchor) ? $this->id : $fixed_anchor; return $this->msg_top . $this->wrap(parent::toString(), 'h' . $this->level, ' id="' . $id . '"'); }