This class is an intermediate between our application code and the global functions that exist in GlobalFunctions.php and wikia/GlobalFunctions.php. The idea behind doing this is that it allows us to mock calls to static functions.

Any time you call $wf->funcName you are using this class, but you will not generally need to modify it. The exception to this rule is that if there is a function which is called frequently or has performance impact, we can add a direct function to this class so we do not have to go through the dynamic method dispatch (which is slow). One example of doing that is the profileIn function in WikiaFunctionWrapper:

	public function profileIn( $method ) {
		wfProfileIn( $method );

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.