MediaWiki  master
SpecialRandomRootPage.php
Go to the documentation of this file.
1 <?php
2 
4 
30 
35  public function __construct(
36  ILoadBalancer $loadBalancer,
37  NamespaceInfo $nsInfo
38  ) {
39  parent::__construct( $loadBalancer, $nsInfo );
40  $this->mName = 'Randomrootpage';
42  $this->extra[] = 'page_title NOT ' . $dbr->buildLike( $dbr->anyString(), '/', $dbr->anyString() );
43  }
44 
45  // Don't select redirects
46  public function isRedirect() {
47  return false;
48  }
49 }
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
Special page to direct the user to a random page.
__construct(ILoadBalancer $loadBalancer, NamespaceInfo $nsInfo)
Create and track the database connections and transactions for a given database cluster.
getConnectionRef( $i, $groups=[], $domain=false, $flags=0)
const DB_REPLICA
Definition: defines.php:26