mOriginalPageOutCallback = $importer->setPageOutCallback( [ $this, 'reportPage' ] ); $this->mOriginalLogCallback = $importer->setLogItemCallback( [ $this, 'reportLogItem' ] ); $importer->setNoticeCallback( [ $this, 'reportNotice' ] ); $this->mPageCount = 0; $this->mIsUpload = $upload; $this->mInterwiki = $interwiki; $this->reason = $reason; } /** * Sets change tags to apply to the import log entry and null revision. * * @param array $tags * @since 1.29 */ public function setChangeTags( array $tags ) { $this->logTags = $tags; } function open() { $this->getOutput()->addHTML( "\n" ); return Status::newFatal( 'importnopages' ); } $out->addHTML( "\n" ); return Status::newGood( $this->mPageCount ); } }