PHP 8.0.30
Preview: class-wp-html-stack-event.php Size: 1.61 KB
/home/certprox/zang.certproxywizard.com/wp/wp-includes/html-api/class-wp-html-stack-event.php

<?php
/**
 * HTML API: WP_HTML_Stack_Event class
 *
 * @package WordPress
 * @subpackage HTML-API
 * @since 6.6.0
 */

/**
 * Core class used by the HTML Processor as a record for stack operations.
 *
 * This class is for internal usage of the WP_HTML_Processor class.
 *
 * @access private
 * @ignore
 *
 * @since 6.6.0
 *
 * @see WP_HTML_Processor
 */
class WP_HTML_Stack_Event {
	/**
	 * Refers to popping an element off of the stack of open elements.
	 *
	 * @since 6.6.0
	 */
	const POP = 'pop';

	/**
	 * Refers to pushing an element onto the stack of open elements.
	 *
	 * @since 6.6.0
	 */
	const PUSH = 'push';

	/**
	 * References the token associated with the stack push event,
	 * even if this is a pop event for that element.
	 *
	 * @since 6.6.0
	 *
	 * @var WP_HTML_Token
	 */
	public $token;

	/**
	 * Indicates which kind of stack operation this event represents.
	 *
	 * May be one of the class constants.
	 *
	 * @since 6.6.0
	 *
	 * @see self::POP
	 * @see self::PUSH
	 *
	 * @var string
	 */
	public $operation;

	/**
	 * Indicates if the stack element is a real or virtual node.
	 *
	 * @since 6.6.0
	 *
	 * @var string
	 */
	public $provenance;

	/**
	 * Constructor function.
	 *
	 * @since 6.6.0
	 *
	 * @param WP_HTML_Token $token      Token associated with stack event, always an opening token.
	 * @param string        $operation  One of self::PUSH or self::POP.
	 * @param string        $provenance "virtual" or "real".
	 */
	public function __construct( WP_HTML_Token $token, string $operation, string $provenance ) {
		$this->token      = $token;
		$this->operation  = $operation;
		$this->provenance = $provenance;
	}
}

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
7.10 KB lrw-r--r-- 2026-05-21 18:01:57
Edit Download
2.72 KB lrw-r--r-- 2026-05-21 18:01:57
Edit Download
16.29 KB lrw-r--r-- 2026-05-21 18:01:57
Edit Download
24.79 KB lrw-r--r-- 2025-08-19 12:08:32
Edit Download
21.99 KB lrw-r--r-- 2026-05-21 18:01:58
Edit Download
11.08 KB lrw-r--r-- 2026-05-21 18:01:57
Edit Download
210.41 KB lrw-r--r-- 2026-05-21 18:01:57
Edit Download
1.07 KB lrw-r--r-- 2024-07-19 20:44:16
Edit Download
1.61 KB lrw-r--r-- 2026-05-21 18:01:58
Edit Download
163.68 KB lrw-r--r-- 2026-05-21 18:01:57
Edit Download
1.38 KB lrw-r--r-- 2024-07-19 20:44:16
Edit Download
3.33 KB lrw-r--r-- 2025-09-28 18:56:28
Edit Download
3.52 KB lrw-r--r-- 2024-07-12 19:29:14
Edit Download
78.28 KB lrw-r--r-- 2024-05-23 16:56:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).