MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Transforms\SubHeadingTransform Class Reference

Marks the headings as editable by adding the in-block class to each of them, if it hasn't already been added. More...

+ Inheritance diagram for MobileFrontend\Transforms\SubHeadingTransform:
+ Collaboration diagram for MobileFrontend\Transforms\SubHeadingTransform:

Public Member Functions

 __construct (array $topHeadingTags)
 
 apply (DOMElement $node)
 Performs html transformation.
 

Protected Member Functions

 makeHeadingsEditable (array $headings)
 Marks the headings as editable by adding the in-block class to each of them, if it hasn't already been added.
 

Detailed Description

Marks the headings as editable by adding the in-block class to each of them, if it hasn't already been added.

Constructor & Destructor Documentation

◆ __construct()

MobileFrontend\Transforms\SubHeadingTransform::__construct ( array $topHeadingTags)
Parameters
string[]$topHeadingTagslist of heading tags ordered by weight

Member Function Documentation

◆ apply()

MobileFrontend\Transforms\SubHeadingTransform::apply ( DOMElement $node)

Performs html transformation.

Parameters
DOMElement$nodehtml element

Implements MobileFrontend\Transforms\IMobileTransform.

◆ makeHeadingsEditable()

MobileFrontend\Transforms\SubHeadingTransform::makeHeadingsEditable ( array $headings)
protected

Marks the headings as editable by adding the in-block class to each of them, if it hasn't already been added.

FIXME: in-block isn't semantic in that it isn't obviously connected to being editable.

Parameters
DOMElement[]$headingsHeading elements

The documentation for this class was generated from the following file: