DOMText クラス
(PHP 5, PHP 7)
はじめに
DOMText クラスは DOMCharacterData を継承しており、 DOMElement あるいは DOMAttr の中身のテキストを表します。
クラス概要
DOMText
extends
DOMCharacterData
{
/* プロパティ */
/* メソッド */
/* 継承したメソッド */
public DOMNode::C14N
([ bool
$exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] ) : string
public DOMNode::C14NFile
( string
}$uri
[, bool $exclusive
[, bool $with_comments
[, array $xpath
[, array $ns_prefixes
]]]] ) : intプロパティ
- wholeText
-
論理的に隣接した (要素やコメント、処理命令などで分割されていない) テキストノードの全テキストを保持します。
目次
- DOMText::__construct — 新しい DOMText オブジェクトを作成する
- DOMText::isElementContentWhitespace — Returns whether this text node contains whitespace in element content
- DOMText::isWhitespaceInElementContent — このテキストノードが空白を含むかどうかを示す
- DOMText::splitText — 指定したオフセットでノードを 2 つに分割する