/** * Gets inner HTML code. * * @return string */ private function _getInnerHtml() { $ret = ""; foreach ($this->elements() as $element) { $childNodes = $element->childNodes; $str = ""; foreach ($childNodes as $node) { $str .= DomHelper::dom2str($node); } $ret = TextHelper::concat("\n", $ret, $str); } return $ret; }
/** * Gets the string representation of a node. * * @param DOMNode $node DOMNode object * * @return string */ public function dom2str($node) { return DomHelper::dom2str($node); }
/** * Gets a string representation of the node. * * @return string */ public function __toString() { $ret = ""; foreach ($this->elements as $element) { $ret = TextHelper::concat("\n", $ret, DomHelper::dom2str($element)); } return $ret; }