MediaWiki master
MediaWiki\Html Namespace Reference

Classes

class  FormOptions
 Helper class to keep track of options when mixing links and form elements. More...
 
class  Html
 This class is a collection of static functions that serve two purposes: More...
 
class  HtmlHelper
 Static utilities for manipulating HTML strings. More...
 
class  HtmlJsCode
 A wrapper class which causes Html::encodeJsVar() and Html::encodeJsCall() (as well as their Xml::* counterparts) to interpret a given string as being a JavaScript expression, instead of string data. More...
 
class  ListToggle
 Class for generating clickable toggle links for a list of checkboxes. More...
 
class  TemplateParser
 

Functions

 __construct ( $options, callable $shouldModifyCallback, callable $modifyCallback)
 
 element (SerializerNode $parent, SerializerNode $node, $contents)
 
 startDocument ( $fragmentNamespace, $fragmentName)
 

Variables

trait HtmlHelperTrait
 Internal helper trait for HtmlHelper::modifyHtml.
 

Function Documentation

◆ __construct()

MediaWiki\Html\__construct ( $options,
callable $shouldModifyCallback,
callable $modifyCallback )

Definition at line 22 of file HtmlHelperTrait.php.

◆ element()

MediaWiki\Html\element ( SerializerNode $parent,
SerializerNode $node,
$contents )

Definition at line 28 of file HtmlHelperTrait.php.

Referenced by MediaWiki\Content\JsonContent\arrayTable(), MediaWiki\Specials\SpecialEditTags\buildCheckBoxes(), MediaWiki\Api\ApiFormatBase\closePrinter(), MediaWiki\Specials\SpecialRecentChanges\doHeader(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialNamespaceInfo\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialVersion\execute(), MediaWiki\Specials\SpecialEditRecovery\execute(), MediaWiki\Installer\WebInstallerDBConnect\execute(), MediaWiki\Content\CssContentHandler\fillParserOutput(), MediaWiki\Content\JavaScriptContentHandler\fillParserOutput(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\footerHtml(), MediaWiki\Specials\SpecialFewestRevisions\formatResult(), MediaWiki\Specials\SpecialMostCategories\formatResult(), MediaWiki\Specials\SpecialMostInterwikis\formatResult(), MediaWiki\Specials\SpecialMostLinked\formatResult(), MediaWiki\Specials\SpecialMostLinkedCategories\formatResult(), MediaWiki\Specials\SpecialMostLinkedTemplates\formatResult(), MediaWiki\Specials\SpecialPagesWithProp\formatResult(), MediaWiki\Specials\SpecialShortPages\formatResult(), MediaWiki\Specials\SpecialUnwatchedPages\formatResult(), MediaWiki\SpecialPage\PageQueryPage\formatResult(), MediaWiki\Pager\HistoryPager\formatRow(), MediaWiki\Pager\ProtectedTitlesPager\formatRow(), MediaWiki\Pager\ProtectedPagesPager\formatValue(), MediaWiki\Pager\UploadStashPager\formatValue(), MediaWiki\Specials\SpecialChangeCredentials\getAuthForm(), MediaWiki\HTMLForm\CodexHTMLForm\getButtons(), MediaWiki\HTMLForm\HTMLForm\getButtons(), MediaWiki\Feed\FeedUtils\getDiffLink(), MediaWiki\Pager\TablePager\getEmptyBody(), MediaWiki\Specials\SpecialRecentChanges\getExtraOptions(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getFieldDefinitions(), MediaWiki\Installer\MysqlConnectForm\getHtml(), MediaWiki\Installer\PostgresConnectForm\getHtml(), MediaWiki\HTMLForm\Field\HTMLRadioField\getInputCodex(), MediaWiki\HTMLForm\Field\HTMLCheckMatrix\getInputHTML(), MediaWiki\Installer\DatabaseConnectForm\getInstallUserBox(), MediaWiki\HTMLForm\CodexHTMLForm\getLegend(), MediaWiki\Pager\TablePager\getStartBody(), MediaWiki\Installer\DatabaseSettingsForm\getWebUserBox(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\headerHtml(), MediaWiki\Installer\WebInstaller\infoBox(), MediaWiki\Linker\Linker\makeBrokenImageLinkObj(), MediaWiki\Linker\Linker\makeExternalImage(), MediaWiki\Installer\WebInstaller\makeLinkItem(), MediaWiki\Specials\SpecialInterwiki\makeTable(), MediaWiki\Api\ApiMain\modifyHelp(), MediaWiki\Specials\SpecialRecentChanges\namespaceFilterForm(), MediaWiki\Content\JsonContent\objectRow(), MediaWiki\Content\JsonContent\objectTable(), MediaWiki\Xml\Xml\option(), MediaWiki\Specials\SpecialMediaStatistics\outputMediaType(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\Content\JsonContent\rootValueTable(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialBlockList\showList(), MediaWiki\Specials\SpecialUserRights\showLogFragment(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), MediaWiki\Specials\SpecialChangeCredentials\showSubpageList(), MediaWiki\Xml\Xml\submitButton(), MediaWiki\OutputTransform\Stages\DeduplicateStyles\transformText(), and MediaWiki\Content\JsonContent\valueCell().

◆ startDocument()

MediaWiki\Html\startDocument ( $fragmentNamespace,
$fragmentName )

Definition at line 40 of file HtmlHelperTrait.php.

Variable Documentation

◆ HtmlHelperTrait

trait MediaWiki::Html\HtmlHelperTrait
Initial value:
{
private callable $shouldModifyCallback

Internal helper trait for HtmlHelper::modifyHtml.

This is designed to extend a HtmlFormatter.

Definition at line 15 of file HtmlHelperTrait.php.

Referenced by MediaWiki\Html\HtmlHelper\modifyElements().