PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / masterminds / html5 / src / HTML5 / InstructionProcessor.php
ameliabooking / vendor / masterminds / html5 / src / HTML5 Last commit date
Parser 6 months ago Serializer 6 months ago Elements.php 6 months ago Entities.php 6 months ago Exception.php 6 months ago InstructionProcessor.php 6 months ago
InstructionProcessor.php
42 lines
1 <?php
2 /**
3 * A handler for processor instructions.
4 */
5
6 namespace AmeliaVendor\Masterminds\HTML5;
7
8 /**
9 * Provide an processor to handle embedded instructions.
10 *
11 * XML defines a mechanism for inserting instructions (like PHP) into a
12 * document. These are called "Processor Instructions." The HTML5 parser
13 * provides an opportunity to handle these processor instructions during
14 * the tree-building phase (before the DOM is constructed), which makes
15 * it possible to alter the document as it is being created.
16 *
17 * One could, for example, use this mechanism to execute well-formed PHP
18 * code embedded inside of an HTML5 document.
19 */
20 interface InstructionProcessor
21 {
22 /**
23 * Process an individual processing instruction.
24 *
25 * The process() function is responsible for doing the following:
26 * - Determining whether $name is an instruction type it can handle.
27 * - Determining what to do with the data passed in.
28 * - Making any subsequent modifications to the DOM by modifying the
29 * DOMElement or its attached DOM tree.
30 *
31 * @param \DOMElement $element The parent element for the current processing instruction.
32 * @param string $name The instruction's name. E.g. `&lt;?php` has the name `php`.
33 * @param string $data All of the data between the opening and closing PI marks.
34 *
35 * @return \DOMElement The element that should be considered "Current". This may just be
36 * the element passed in, but if the processor added more elements,
37 * it may choose to reset the current element to one of the elements
38 * it created. (When in doubt, return the element passed in.)
39 */
40 public function process(\DOMElement $element, $name, $data);
41 }
42