|
MobileFrontend
Mobile optimised frontend for MediaWiki
|
Converts HTML into a mobile-friendly version. More...
Public Member Functions | |
| __construct (string $html) | |
| @inheritDoc | |
| applyTransforms (array $transforms) | |
| Performs various transformations to the content to make it appropriate for mobile devices. | |
| getHtml () | |
| Get the serialized HTML. | |
| canApply (array $options) | |
| Check whether the MobileFormatter can be applied to the text of a page. | |
Converts HTML into a mobile-friendly version.
| MobileFormatter::applyTransforms | ( | array | $transforms | ) |
Performs various transformations to the content to make it appropriate for mobile devices.
| array<IMobileTransform> | $transforms lit of transforms to be sequentually applied to html DOM |
| MobileFormatter::canApply | ( | array | $options | ) |
Check whether the MobileFormatter can be applied to the text of a page.
| array | $options | with 'maxHeadings' and 'maxImages' keys that limit the MobileFormatter to pages with less than or equal to that number of headings and images. |
| MobileFormatter::getHtml | ( | ) |
Get the serialized HTML.