Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/vendor/wikimedia/parsoid/src/Tokens/CommentTk.php
Ðазад
<?php declare( strict_types = 1 ); namespace Wikimedia\Parsoid\Tokens; use Wikimedia\Parsoid\NodeData\DataMw; use Wikimedia\Parsoid\NodeData\DataParsoid; /** * Represents a comment */ class CommentTk extends Token { /** @var string Comment text */ public $value; public function __construct( string $value, ?DataParsoid $dataParsoid = null, ?DataMw $dataMw = null ) { // $dataParsoid won't survive in the DOM, but still useful for token serialization // FIXME: verify if this is still required given that html->wt doesn't // use tokens anymore. That was circa 2012 serializer code. parent::__construct( $dataParsoid, $dataMw ); $this->value = $value; } /** * @inheritDoc */ public function jsonSerialize(): array { return [ 'type' => $this->getType(), 'value' => $this->value, 'dataParsoid' => $this->dataParsoid, 'dataMw' => $this->dataMw, ]; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка