/** * (non-PHPdoc) * @see AbstractBbcodeNode::toHtml() */ public function toHtml() { if ($this->isEmpty()) { return ''; } return '<td>' . parent::childrenString() . '</td>'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toString() */ public function toString() { if ($this->isEmpty()) { return ''; } return '[left]' . parent::childrenString() . '[/left]'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toString() */ public function toString() { if ($this->isEmpty()) { return ''; } if ($this->_title === null) { return '[spoiler]' . parent::childrenString() . '[/spoiler]'; } return '[spoiler=' . $this->_title . ']' . parent::childrenString() . '[/spoiler]'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toString() */ public function toString() { if ($this->isEmpty()) { return ''; } if ($this->_author === null) { return '[quote]' . parent::childrenString() . '[/quote]'; } return '[quote=' . $this->_author . ']' . parent::childrenString() . '[/quote]'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toString() */ public function toString() { if ($this->isEmpty()) { return ''; } if ($this->_color === null) { return parent::childrenString(); } return '[color=' . $this->_color . ']' . parent::childrenString() . '[/color]'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toString() */ public function toString() { if ($this->isEmpty()) { return ''; } if ($this->_size === null) { return parent::childrenString(); } return '[size=' . $this->_size . ']' . parent::childrenString() . '[/size]'; }
/** * Gets correctly formed bbcode from this subtree. * * @return string */ public function toString() { if ($this->isEmpty()) { return ""; } if (count(parent::getChildren()) === 0) { return '[url]' . $this->_target_url . '[/url]'; } else { return '[url=' . $this->_target_url . ']' . parent::childrenString() . '[/url]'; } }