Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5981035
NoTransform.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
NoTransform.php
View Options
<?php
namespace
MobileFrontend\Transforms
;
use
DOMElement
;
class
NoTransform
implements
IMobileTransform
{
/** @var self */
private
static
$instance
;
/**
* 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.
*
* @return self
*/
public
static
function
getInstance
():
self
{
if
(
self
::
$instance
===
null
)
{
self
::
$instance
=
new
self
();
}
return
self
::
$instance
;
}
/**
* Does nothing.
* @param DOMElement $node to be transformed
*/
public
function
apply
(
DOMElement
$node
)
{
// nothing happens
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 21:41 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
67/01/382623c1ddd7d47c0e103d33a4d8
Default Alt Text
NoTransform.php (755 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment