Example #1
0
 public function toString()
 {
     return $this->wrap(parent::toString(), 'p', $this->param);
 }
Example #2
0
 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());
 }
Example #3
0
 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);
 }
Example #4
0
 public function toString()
 {
     return $this->wrap(parent::toString(), $this->tag, $this->style);
 }
Example #5
0
 public function toString()
 {
     return $this->wrap(parent::toString(), $this->head);
 }
Example #6
0
 public function toString()
 {
     return $this->wrap(parent::toString(), 'blockquote');
 }
Example #7
0
 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 . '"');
 }