$this->setPageOutCallback( array( $this, 'finishImportPage' ) );
}
- private function throwXmlError( $err ) {
+ /**
+ * @return null|\XMLReader
+ */
+ public function getReader()
+ {
+ return $this->reader;
+ }
+
+ public function throwXmlError( $err ) {
$this->debug( "FAILURE: $err" );
wfDebug( "WikiImporter XML error: $err\n" );
}
- private function debug( $data ) {
+ public function debug( $data ) {
if ( $this->mDebug ) {
wfDebug( "IMPORT: $data\n" );
}
}
- private function warn( $data ) {
+ public function warn( $data ) {
wfDebug( "IMPORT: $data\n" );
}
- private function notice( $msg /*, $param, ...*/ ) {
+ public function notice( $msg /*, $param, ...*/ ) {
$params = func_get_args();
array_shift( $params );
* @return string
* @access private
*/
- private function nodeContents() {
+ public function nodeContents() {
if ( $this->reader->isEmptyElement ) {
return "";
}