MediaWiki REL1_32
Replacer.php
Go to the documentation of this file.
1<?php
27abstract class Replacer {
31 public function cb() {
32 wfDeprecated( __METHOD__, '1.32' );
33 return [ $this, 'replace' ];
34 }
35
40 abstract public function replace( array $matches );
41}
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Base class for "replacers", objects used in preg_replace_callback() and StringUtils::delimiterReplace...
Definition Replacer.php:27
replace(array $matches)
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))