Page MenuHomeWickedGov Phorge

EditBoxField.php
No OneTemporary

Size
667 B
Referenced Files
None
Subscribers
None

EditBoxField.php

<?php
namespace MediaWiki\Extension\AbuseFilter\EditBox;
use MediaWiki\HTMLForm\HTMLFormField;
/**
* This class is used to easily wrap a filter editor box inside an HTMLForm. For now it's just a transparent
* wrapper around the given HTML string. In the future, some of the actual logic might be moved here.
* @unstable
*/
class EditBoxField extends HTMLFormField {
/** @var string */
private $html;
/**
* @param array $params
*/
public function __construct( array $params ) {
parent::__construct( $params );
$this->html = $params['html'];
}
/**
* @inheritDoc
*/
public function getInputHTML( $value ): string {
return $this->html;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 15:20 (21 h, 17 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b7/42/5b7f22defc2c75d5390b7408444b
Default Alt Text
EditBoxField.php (667 B)

Event Timeline