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
 Handles compiling Mustache templates into PHP rendering functions. More...
 

Functions

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

Variables

trait HtmlHelperTrait
 Internal helper trait for HtmlHelper::modifyHtml.
 

Detailed Description

Note
GPL-2.0-or-later

Function Documentation

◆ __construct()

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

Definition at line 23 of file HtmlHelperTrait.php.

◆ element()

MediaWiki\Html\element ( SerializerNode $parent,
SerializerNode $node,
$contents )
Parameters
SerializerNode$parent
SerializerNode$node
string | null$contents
Returns
string

Definition at line 38 of file HtmlHelperTrait.php.

Referenced by MediaWiki\Specials\SpecialUserLogout\alterForm(), MediaWiki\Content\JsonContent\arrayTable(), MediaWiki\Page\ImageHistoryList\beginImageHistoryList(), MediaWiki\Specials\SpecialEditTags\buildCheckBoxes(), MediaWiki\Xml\Xml\buildForm(), MediaWiki\ChangeTags\ChangeTags\buildTagFilterSelector(), MediaWiki\EditPage\Constraint\RedirectConstraint\checkConstraint(), MediaWiki\Api\ApiFormatBase\closePrinter(), MediaWiki\SpecialPage\ContributionsSpecialPage\contributionsSub(), MediaWiki\Preferences\DefaultPreferencesFactory\datetimePreferences(), MediaWiki\Page\ImagePage\doRenderLangOpt(), MediaWiki\SpecialPage\ContributionsSpecialPage\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialNamespaceInfo\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialVersion\execute(), MediaWiki\Installer\WebInstallerDBConnect\execute(), MediaWiki\Content\CssContentHandler\fillParserOutput(), MediaWiki\Content\JavaScriptContentHandler\fillParserOutput(), MediaWiki\Content\VueContentHandler\fillParserOutput(), MediaWiki\RecentChanges\ChangesList\flag(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\footerHtml(), MediaWiki\Feed\FeedUtils\formatDiffRow2(), 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\Specials\Pager\NewPagesPager\formatRow(), MediaWiki\Specials\Pager\ProtectedTitlesPager\formatRow(), MediaWiki\Specials\Pager\ProtectedPagesPager\formatValue(), MediaWiki\Specials\Pager\UploadStashPager\formatValue(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\generateFileHtml(), MediaWiki\Specials\SpecialChangeCredentials\getAuthForm(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getBenefitsContainerHtml(), MediaWiki\Page\ImageHistoryPseudoPager\getBody(), MediaWiki\HTMLForm\CodexHTMLForm\getButtons(), MediaWiki\Skin\BaseTemplate\getClear(), MediaWiki\Feed\FeedUtils\getDiffLink(), MediaWiki\Pager\TablePager\getEmptyBody(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getFieldDefinitions(), MediaWiki\Installer\MysqlConnectForm\getHtml(), MediaWiki\Installer\PostgresConnectForm\getHtml(), MediaWiki\HTMLForm\Field\HTMLCheckField\getInputCodex(), MediaWiki\HTMLForm\Field\HTMLRadioField\getInputCodex(), MediaWiki\HTMLForm\Field\HTMLCheckField\getInputHTML(), MediaWiki\HTMLForm\Field\HTMLCheckMatrix\getInputHTML(), MediaWiki\HTMLForm\Field\HTMLFormFieldCloner\getInputHTMLForKey(), MediaWiki\Installer\DatabaseConnectForm\getInstallUserBox(), MediaWiki\HTMLForm\CodexHTMLForm\getLegend(), MediaWiki\RecentChanges\EnhancedChangesList\getLineData(), MediaWiki\RevisionDelete\RevDelFileItem\getLink(), MediaWiki\Pager\TablePager\getStartBody(), MediaWiki\RecentChanges\ChangesList\getTimestamp(), MediaWiki\Installer\DatabaseSettingsForm\getWebUserBox(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\headerHtml(), MediaWiki\Parser\CoreTagHooks\html(), MediaWiki\Page\ImageHistoryList\imageHistoryLine(), MediaWiki\RecentChanges\ChangesList\insertDateHeader(), MediaWiki\Html\Html\linkButton(), MediaWiki\SpecialPage\LoginSignupSpecialPage\mainLoginForm(), MediaWiki\Linker\Linker\makeBrokenImageLinkObj(), MediaWiki\Linker\Linker\makeExternalImage(), MediaWiki\Installer\WebInstaller\makeLinkItem(), MediaWiki\Search\SearchWidgets\SearchFormWidget\makeSearchLink(), MediaWiki\Specials\SpecialInterwiki\makeTable(), MediaWiki\Api\ApiMain\modifyHelp(), MediaWiki\Content\JsonContent\objectRow(), MediaWiki\Content\JsonContent\objectTable(), MediaWiki\Page\ImagePage\openShowImage(), MediaWiki\Xml\Xml\option(), MediaWiki\Specials\SpecialMediaStatistics\outputMediaType(), MediaWiki\Specials\SpecialChangeContentModel\postHtml(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\RecentChanges\EnhancedChangesList\recentChangesBlock(), MediaWiki\RecentChanges\ChangesList\revDateLink(), MediaWiki\Content\JsonContent\rootValueTable(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\RecentChanges\ChangesList\showCharacterDifference(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialBlockList\showList(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), MediaWiki\Specials\SpecialChangeCredentials\showSubpageList(), MediaWiki\Page\ImagePage\showTOC(), MediaWiki\Html\Html\submitButton(), MediaWiki\Media\ThumbnailImage\toHtml(), MediaWiki\Page\ImagePage\uploadLinksBox(), MediaWiki\Content\JsonContent\valueCell(), and MediaWiki\Page\ImagePage\view().

◆ startDocument()

MediaWiki\Html\startDocument ( $fragmentNamespace,
$fragmentName )
Parameters
string | null$fragmentNamespace
string | null$fragmentName
Returns
string

Definition at line 59 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 16 of file HtmlHelperTrait.php.

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