MediaWiki  1.23.12
MWFunction.php
Go to the documentation of this file.
1 <?php
23 class MWFunction {
24 
30  public static function call( $callback ) {
31  wfDeprecated( __METHOD__, '1.22' );
32  $args = func_get_args();
33 
34  return call_user_func_array( 'call_user_func', $args );
35  }
36 
43  public static function callArray( $callback, $argsarams ) {
44  wfDeprecated( __METHOD__, '1.22' );
45 
46  return call_user_func_array( $callback, $argsarams );
47  }
48 
54  public static function newObj( $class, $args = array() ) {
55  if ( !count( $args ) ) {
56  return new $class;
57  }
58 
59  $ref = new ReflectionClass( $class );
60 
61  return $ref->newInstanceArgs( $args );
62  }
63 }
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
MWFunction\call
static call( $callback)
Definition: MWFunction.php:30
MWFunction\callArray
static callArray( $callback, $argsarams)
Definition: MWFunction.php:43
MWFunction
Definition: MWFunction.php:23
wfDeprecated
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Definition: GlobalFunctions.php:1174
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
MWFunction\newObj
static newObj( $class, $args=array())
Definition: MWFunction.php:54
$args
if( $line===false) $args
Definition: cdb.php:62