function pageByTitle( $title ) {
return $this->dumpFrom(
'page_namespace=' . $title->getNamespace() .
- ' AND page_title=' . $this->db->addQuotes( $title->getDbKey() ) );
+ ' AND page_title=' . $this->db->addQuotes( $title->getDBkey() ) );
}
function pageByName( $name ) {
# Handles links to special pages wich do not exist in the database:
if( $nt->getNamespace() == NS_SPECIAL ) {
- if( SpecialPage::exists( $nt->getDbKey() ) ) {
+ if( SpecialPage::exists( $nt->getDBkey() ) ) {
$retVal = $this->makeKnownLinkObj( $nt, $text, $query, $trail, $prefix );
} else {
$retVal = $this->makeBrokenLinkObj( $nt, $text, $query, $trail, $prefix );
$class = 'internal';
} else {
$upload = SpecialPage::getTitleFor( 'Upload' );
- $url = $upload->getLocalUrl( 'wpDestFile=' . urlencode( $title->getDbKey() ) );
+ $url = $upload->getLocalUrl( 'wpDestFile=' . urlencode( $title->getDBkey() ) );
$class = 'new';
}
$alt = htmlspecialchars( $title->getText() );
$this->origTitle = Title::newFromText( $this->workTitle );
if( !is_null( $this->mTargetNamespace ) && !is_null( $this->origTitle ) ) {
$this->pageTitle = Title::makeTitle( $this->mTargetNamespace,
- $this->origTitle->getDbKey() );
+ $this->origTitle->getDBkey() );
} else {
$this->pageTitle = Title::newFromText( $this->workTitle );
}
array( 'page_namespace', 'page_title' ),
array(
'pl_namespace' => $title->getNamespace(),
- 'pl_title' => $title->getDbKey(),
+ 'pl_title' => $title->getDBkey(),
'pl_from=page_id' ),
$fname );
$blurlArr = $title->getSquidURLs();
array(
"{$prefix}_from=page_id",
"{$prefix}_namespace" => $this->getNamespace(),
- "{$prefix}_title" => $this->getDbKey() ),
+ "{$prefix}_title" => $this->getDBkey() ),
'Title::getLinksTo',
$options );
array(
'pl_from' => $newid,
'pl_namespace' => $nt->getNamespace(),
- 'pl_title' => $nt->getDbKey() ),
+ 'pl_title' => $nt->getDBkey() ),
$fname );
}
{
// Apparently the XML formatting code doesn't like array(null)
// This is painful to fix, so we'll just work around it
- if(isset($prottitles[$title->getNamespace()][$title->getDbKey()]))
- $res['query']['pages'][$pageid]['protection'][] = $prottitles[$title->getNamespace()][$title->getDbKey()];
+ if(isset($prottitles[$title->getNamespace()][$title->getDBkey()]))
+ $res['query']['pages'][$pageid]['protection'][] = $prottitles[$title->getNamespace()][$title->getDBkey()];
else
$res['query']['pages'][$pageid]['protection'] = array();
$result->setIndexedTagName($res['query']['pages'][$pageid]['protection'], 'pr');
}
$this->id = -1;
$this->title = $title;
- $this->name = $title->getDBKey();
+ $this->name = $title->getDBkey();
$this->group = '';
$this->key = '';
$this->size = 0;
'fa_timestamp',
'fa_deleted' ),
array(
- 'fa_name' => $this->title->getDBKey(),
+ 'fa_name' => $this->title->getDBkey(),
$conds ),
__METHOD__,
array( 'ORDER BY' => 'fa_timestamp DESC' ) );
return $this->progress( 1 );
}
- if( $title->getDbKey() !== $source ) {
- $munged = $title->getDbKey();
+ if( $title->getDBkey() !== $source ) {
+ $munged = $title->getDBkey();
$this->log( "page $source ($munged) doesn't match self." );
$this->pokeFile( $source, $munged );
return $this->progress( 1 );
$name );
$test = Title::makeTitleSafe( NS_IMAGE, $x );
- if( is_null( $test ) || $test->getDbKey() !== $x ) {
+ if( is_null( $test ) || $test->getDBkey() !== $x ) {
$this->log( "Unable to generate safe title from '$name', got '$x'" );
return false;
}
$title = Title::newFromText( $clean );
}
- $dest = $title->getDbKey();
+ $dest = $title->getDBkey();
if( $this->dryrun ) {
$this->log( "DRY RUN: would rename $row->page_id ($row->page_namespace,'$row->page_title') to ($row->page_namespace,'$dest')" );
} else {
if( $title->getInterwiki() ) {
$prior = $title->getPrefixedDbKey();
} else {
- $prior = $title->getDbKey();
+ $prior = $title->getDBkey();
}
$clean = 'Broken/' . $prior;
$verified = Title::makeTitleSafe( $row->page_namespace, $clean );
wfDie( "Something awry; empty title.\n" );
}
$ns = $title->getNamespace();
- $dest = $title->getDbKey();
+ $dest = $title->getDBkey();
if( $this->dryrun ) {
$this->log( "DRY RUN: would rename $row->page_id ($row->page_namespace,'$row->page_title') to ($row->page_namespace,'$dest')" );
} else {
$row->id,
$row->oldtitle,
$newTitle->getNamespace(),
- $newTitle->getDbKey(),
+ $newTitle->getDBkey(),
$newTitle->getPrefixedText() );
$id = $newTitle->getArticleId();
$this->db->update( $table,
array(
"{$table}_namespace" => $newTitle->getNamespace(),
- "{$table}_title" => $newTitle->getDbKey(),
+ "{$table}_title" => $newTitle->getDBkey(),
),
array(
"{$table}_namespace" => 0,
$dbr = wfGetDB( DB_SLAVE );
extract( $dbr->tableNames( 'watchlist' ) );
$sql = "SELECT COUNT(*) AS n FROM $watchlist
- WHERE wl_title='" . $dbr->strencode($this->mTitle->getDBKey()) .
+ WHERE wl_title='" . $dbr->strencode($this->mTitle->getDBkey()) .
"' AND wl_namespace=" . $this->mTitle->getNamespace() ;
$res = $dbr->query( $sql, 'SkinTemplate::outputPage');
$row = $dbr->fetchObject( $res );