[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/html-api/ -> class-wp-html-token.php (summary)

HTML API: WP_HTML_Token class

File Size: 126 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_HTML_Token:: (3 methods):
  __construct()
  __destruct()
  __wakeup()


Class: WP_HTML_Token  - X-Ref

Core class used by the HTML processor during HTML parsing
for referring to tokens in the input HTML string.

This class is designed for internal use by the HTML processor.

__construct( ?string $bookmark_name, string $node_name, bool $has_self_closing_flag, ?callable $on_destroy = null )   X-Ref
Constructor - creates a reference to a token in some external HTML string.

param: string|null   $bookmark_name         Name of bookmark corresponding to location in HTML where token is found,
param: string        $node_name             Name of node token represents; if uppercase, an HTML element; if lowercase, a special value like "marker".
param: bool          $has_self_closing_flag Whether the source token contains the self-closing flag, regardless of whether it's valid.
param: callable|null $on_destroy            Optional. Function to call when destroying token, useful for releasing the bookmark.

__destruct()   X-Ref
Destructor.


__wakeup()   X-Ref
Wakeup magic method.




Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref