FANDOM


WikiaModel is an abstract class that extends Nirvana/WikiaObject with additional database helper functions. Most Helper classes should extend this class.

public function getDB( $db_type = DB_SLAVE ) {
    return wfGetDB( $db_type );
}
 
public function getWikiDB( $db_type = DB_SLAVE, $db_name = false ) {
    return wfGetDB( $db_type, array(), $db_name );
}
 
public function getSharedDB( $db_type = DB_SLAVE ) {
    return wfGetDB( $db_type, array(), $this->wg->ExternalSharedDB );
}
 
public function getDatawareDB( $db_type = DB_SLAVE ) {
    return wfGetDB( $db_type, array(), $this->wg->ExternalDatawareDB );
}
 
public function getStatsDB( $db_type = DB_SLAVE ) {
    return wfGetDB( $db_type, array(), $this->wg->StatsDB );
}

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.