MediaWiki  1.23.2
MWInit Class Reference

Some functions that are useful during startup. More...

Static Public Member Functions

static callStaticMethod ( $className, $methodName, $args)
 Deprecated wrapper for call_user_func_array() More...
 
static classExists ( $class)
 Deprecated wrapper for class_exists() More...
 
static compiledPath ( $file)
 
static extCompiledPath ( $file)
 
static functionExists ( $function)
 Deprecated wrapper for function_exists() More...
 
static getCompilerVersion ()
 
static interpretedPath ( $file)
 Get a fully-qualified path for a source file relative to $IP. More...
 
static isHipHop ()
 Returns true if we are running under HipHop, whether in compiled or interpreted mode. More...
 
static methodExists ( $class, $method)
 Deprecated wrapper for method_exists() More...
 

Static Public Attributes

static $compilerVersion
 

Detailed Description

Some functions that are useful during startup.

This class previously contained some functionality related to a PHP compiler called hphpc. That compiler has now been discontinued. All methods are now deprecated.

Definition at line 33 of file Init.php.

Member Function Documentation

◆ callStaticMethod()

static MWInit::callStaticMethod (   $className,
  $methodName,
  $args 
)
static

Deprecated wrapper for call_user_func_array()

Deprecated:
since 1.22
Parameters
$classNamestring
$methodNamestring
$argsarray
Returns
mixed

Definition at line 133 of file Init.php.

References $args, and array().

◆ classExists()

static MWInit::classExists (   $class)
static

Deprecated wrapper for class_exists()

Deprecated:
since 1.22
Parameters
$classstring
Returns
bool

Definition at line 94 of file Init.php.

◆ compiledPath()

static MWInit::compiledPath (   $file)
static
Deprecated:
since 1.22
Parameters
$filestring
Returns
string

Definition at line 72 of file Init.php.

References $IP, and global.

◆ extCompiledPath()

static MWInit::extCompiledPath (   $file)
static
Deprecated:
since 1.22
Parameters
$filestring
Returns
string

Definition at line 82 of file Init.php.

◆ functionExists()

static MWInit::functionExists (   $function)
static

Deprecated wrapper for function_exists()

Deprecated:
since 1.22
Parameters
$functionstring
Returns
bool

Definition at line 119 of file Init.php.

◆ getCompilerVersion()

static MWInit::getCompilerVersion ( )
static
Deprecated:
since 1.22

Definition at line 39 of file Init.php.

◆ interpretedPath()

static MWInit::interpretedPath (   $file)
static

Get a fully-qualified path for a source file relative to $IP.

Deprecated:
since 1.22
Parameters
$filestring
Returns
string

Definition at line 62 of file Init.php.

References $IP, and global.

◆ isHipHop()

static MWInit::isHipHop ( )
static

Returns true if we are running under HipHop, whether in compiled or interpreted mode.

Deprecated:
since 1.22
Returns
bool

Definition at line 50 of file Init.php.

References wfIsHHVM().

◆ methodExists()

static MWInit::methodExists (   $class,
  $method 
)
static

Deprecated wrapper for method_exists()

Deprecated:
since 1.22
Parameters
$classstring
$methodstring
Returns
bool

Definition at line 107 of file Init.php.

Member Data Documentation

◆ $compilerVersion

MWInit::$compilerVersion
static

Definition at line 34 of file Init.php.


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