MediaWiki  1.23.3
Init.php
Go to the documentation of this file.
1 <?php
33 class MWInit {
35 
39  static function getCompilerVersion() {
40  return false;
41  }
42 
50  static function isHipHop() {
51  return wfIsHHVM();
52  }
53 
62  static function interpretedPath( $file ) {
63  global $IP;
64  return "$IP/$file";
65  }
66 
72  static function compiledPath( $file ) {
73  global $IP;
74  return "$IP/$file";
75  }
76 
82  static function extCompiledPath( $file ) {
83  return false;
84  }
85 
94  static function classExists( $class ) {
95  return class_exists( $class );
96  }
97 
107  static function methodExists( $class, $method ) {
108  return method_exists( $class, $method );
109  }
110 
119  static function functionExists( $function ) {
120  return function_exists( $function );
121  }
122 
133  static function callStaticMethod( $className, $methodName, $args ) {
134  return call_user_func_array( array( $className, $methodName ), $args );
135  }
136 }
MWInit\isHipHop
static isHipHop()
Returns true if we are running under HipHop, whether in compiled or interpreted mode.
Definition: Init.php:50
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
MWInit\getCompilerVersion
static getCompilerVersion()
Definition: Init.php:39
MWInit\interpretedPath
static interpretedPath( $file)
Get a fully-qualified path for a source file relative to $IP.
Definition: Init.php:62
MWInit\functionExists
static functionExists( $function)
Deprecated wrapper for function_exists()
Definition: Init.php:119
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
MWInit\extCompiledPath
static extCompiledPath( $file)
Definition: Init.php:82
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
MWInit\methodExists
static methodExists( $class, $method)
Deprecated wrapper for method_exists()
Definition: Init.php:107
$file
if(PHP_SAPI !='cli') $file
Definition: UtfNormalTest2.php:30
MWInit\$compilerVersion
static $compilerVersion
Definition: Init.php:34
$args
if( $line===false) $args
Definition: cdb.php:62
MWInit
Some functions that are useful during startup.
Definition: Init.php:33
MWInit\callStaticMethod
static callStaticMethod( $className, $methodName, $args)
Deprecated wrapper for call_user_func_array()
Definition: Init.php:133
MWInit\classExists
static classExists( $class)
Deprecated wrapper for class_exists()
Definition: Init.php:94
wfIsHHVM
wfIsHHVM()
Check if we are running under HHVM.
Definition: GlobalFunctions.php:2537
$IP
$IP
Definition: WebStart.php:88
MWInit\compiledPath
static compiledPath( $file)
Definition: Init.php:72