MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Transforms\NoTransform Class Reference
+ Inheritance diagram for MobileFrontend\Transforms\NoTransform:
+ Collaboration diagram for MobileFrontend\Transforms\NoTransform:

Public Member Functions

 apply (DOMElement $node)
 Does nothing.
 

Static Public Member Functions

static getInstance ()
 Returns a static instance of NoTransform class.
 

Member Function Documentation

◆ apply()

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

Does nothing.

Parameters
DOMElement$nodeto be transformed

Implements MobileFrontend\Transforms\IMobileTransform.

◆ getInstance()

static MobileFrontend\Transforms\NoTransform::getInstance ( )
static

Returns a static instance of NoTransform class.

Note: There's no need in many instances of this class as it does nothing. So it's a common pre-optimization to make such classes as singleton, what's rather a matter of convenience than real optimization.

Returns
self

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