MediaWiki  1.30.0
TidySupport Class Reference

Initialize and detect the tidy support. More...

Public Member Functions

 __construct ( $useConfiguration=false)
 Determine if there is a usable tidy. More...
 
 getConfig ()
 
 isEnabled ()
 Returns true if tidy is usable. More...
 

Private Attributes

 $config
 
 $enabled
 

Detailed Description

Initialize and detect the tidy support.

Definition at line 26 of file TidySupport.php.

Constructor & Destructor Documentation

◆ __construct()

TidySupport::__construct (   $useConfiguration = false)

Determine if there is a usable tidy.

Parameters
bool$useConfiguration

Definition at line 34 of file TidySupport.php.

References $IP, $path, $wgTidyBin, $wgTidyConf, $wgTidyConfig, $wgTidyInternal, $wgTidyOpts, $wgUseTidy, global, Installer\locateExecutableInDefaultPaths(), and wfIsHHVM().

Member Function Documentation

◆ getConfig()

TidySupport::getConfig ( )

Definition at line 93 of file TidySupport.php.

References $config.

◆ isEnabled()

TidySupport::isEnabled ( )

Returns true if tidy is usable.

Returns
bool

Definition at line 89 of file TidySupport.php.

References $enabled.

Member Data Documentation

◆ $config

TidySupport::$config
private

Definition at line 28 of file TidySupport.php.

Referenced by getConfig().

◆ $enabled

TidySupport::$enabled
private

Definition at line 27 of file TidySupport.php.

Referenced by isEnabled().


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