Dom\TokenList クラス

はじめに

属性 (例: クラス名) 中のトークンの集合の表します。

クラス概要

final Dom\TokenList
implements IteratorAggregate Countable
/* プロパティ */
public readonly int $length;
public string $value;
/* メソッド */
public void add(string ...$tokens)
public bool contains(string $token)
public int count()
public Iterator getIterator()
public stringnull item(int $index)
public void remove(string ...$tokens)
public bool replace(string $token, string $newToken)
public bool supports(string $token)
public bool toggle(string $token, boolnull $force = null)

プロパティ

length
トークンの数
value
このオブジェクトにリンクされた属性の値

注意

注意: DOM拡張モジュールは、メソッドやプロパティで UTF-8 エンコーディングを使います。 パースをおこなうメソッドは、エンコーディングを自動的に判別し、呼び出し側でエンコーディングを指定することもできます。

注意: リスト中のトークンは、配列の記法でアクセスできます

目次