require_once $file;
}
$register = array( $class, 'register' );
- call_user_func_array( $register, array( &$this ) );
+ call_user_func_array( $register, array( $this ) );
}
function execute() {
protected function moveIllegalPage( $row ) {
$legal = 'A-Za-z0-9_/\\\\-';
$legalized = preg_replace_callback( "!([^$legal])!",
- array( &$this, 'hexChar' ),
+ array( $this, 'hexChar' ),
$row->page_title );
if ( $legalized == '.' ) {
$legalized = '(dot)';
$importer = new WikiImporter( $source, $this->getConfig() );
$importer->setRevisionCallback(
- array( &$this, 'handleRevision' ) );
+ array( $this, 'handleRevision' ) );
$this->from = $this->getOption( 'from', null );
$this->count = 0;
xml_set_element_handler(
$parser,
- array( &$this, 'startElement' ),
- array( &$this, 'endElement' )
+ array( $this, 'startElement' ),
+ array( $this, 'endElement' )
);
- xml_set_character_data_handler( $parser, array( &$this, 'characterData' ) );
+ xml_set_character_data_handler( $parser, array( $this, 'characterData' ) );
$offset = 0; // for context extraction on error reporting
do {
return false;
}
}
- $importer->setPageCallback( array( &$this, 'reportPage' ) );
+ $importer->setPageCallback( array( $this, 'reportPage' ) );
$this->importCallback = $importer->setRevisionCallback(
- array( &$this, 'handleRevision' ) );
+ array( $this, 'handleRevision' ) );
$this->uploadCallback = $importer->setUploadCallback(
- array( &$this, 'handleUpload' ) );
+ array( $this, 'handleUpload' ) );
$this->logItemCallback = $importer->setLogItemCallback(
- array( &$this, 'handleLogItem' ) );
+ array( $this, 'handleLogItem' ) );
if ( $this->uploads ) {
$importer->setImportUploads( true );
}
$importer = new WikiImporter( $source, $this->getConfig() );
$importer->setRevisionCallback(
- array( &$this, 'handleRevision' ) );
+ array( $this, 'handleRevision' ) );
$importer->doImport();
$source,
ConfigFactory::getDefaultInstance()->makeConfig( 'main' )
);
- $importer->setRevisionCallback( array( &$this, 'importRevision' ) );
+ $importer->setRevisionCallback( array( $this, 'importRevision' ) );
$importer->doImport();
}