Page MenuHomeWickedGov Phorge

SelectiveUpdateData.php
No OneTemporary

Size
922 B
Referenced Files
None
Subscribers
None

SelectiveUpdateData.php

<?php
declare( strict_types = 1 );
namespace Wikimedia\Parsoid\Core;
use Wikimedia\Parsoid\DOM\Document;
/**
* Data that's necessary for selective updates (whether html->wt or wt->html).
* This is always revision (current or previous)wikitext & html.
*/
class SelectiveUpdateData {
public string $revText;
public ?string $revHTML;
/**
* DOM document corresponding to $revHTML
*/
public Document $revDOM;
/**
* If we are doing selective updates for a template edit,
* title string of the edited template.
*/
public ?string $templateTitle;
/**
* Options for selective HTML updates: template, section, generic
*/
public ?string $mode;
/**
* Data that's necessary to perform selective serialization.
*/
public function __construct(
string $revText, ?string $revHTML = null, ?string $mode = null
) {
$this->revText = $revText;
$this->revHTML = $revHTML;
$this->mode = $mode;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 15 2026, 11:24 (12 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1d/1f/1fec7c143463addfe2e3dd5f3b17
Default Alt Text
SelectiveUpdateData.php (922 B)

Event Timeline