| 1 |
<?php |
| 2 |
|
| 3 |
namespace MediaWiki\Tests\Maintenance; |
| 4 |
|
| 5 |
use BaseDump; |
| 6 |
use MediaWiki\Maintenance\TextPassDumper; |
| 7 |
use MediaWiki\Revision\RevisionRecord; |
| 8 |
use MediaWiki\Revision\SlotRecord; |
| 9 |
use MediaWikiLangTestCase; |
| 10 |
use WikiExporter; |
| 11 |
use XmlDumpWriter; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
class TextPassDumperDatabaseTest extends DumpTestCase { |
| 26 |
|
| 27 |
use PageDumpTestDataTrait; |
| 28 |
|
| 29 |
public function addDBData() { |
| 30 |
parent::addDBData(); |
| 31 |
|
| 32 |
$this->addTestPages( $this->getTestSysop()->getUser() ); |
| 33 |
} |
| 34 |
|
| 35 |
public function schemaVersionProvider() { |
| 36 |
foreach ( XmlDumpWriter::$supportedSchemas as $schemaVersion ) { |
| 37 |
yield [ $schemaVersion ]; |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
public function testFullTextPlain( $schemaVersion ) { |
| 45 |
|
| 46 |
$nameStub = $this->setUpStub( 'AllStubs', $schemaVersion ); |
| 47 |
$nameFull = $this->getNewTempFile(); |
| 48 |
|
| 49 |
$dumper = new TextPassDumper( [ "--stub=file:" . $nameStub, |
| 50 |
"--output=file:" . $nameFull, '--schema-version', $schemaVersion ] ); |
| 51 |
$dumper->reporting = false; |
| 52 |
$dumper->setDB( $this->getDb() ); |
| 53 |
|
| 54 |
|
| 55 |
$dumper->dump( WikiExporter::FULL, WikiExporter::TEXT ); |
| 56 |
|
| 57 |
|
| 58 |
$this->assertDumpSchema( $nameFull, $this->getXmlSchemaPath( $schemaVersion ) ); |
| 59 |
|
| 60 |
$asserter = $this->getDumpAsserter( $schemaVersion ); |
| 61 |
$this->setSiteVarMappings( $asserter ); |
| 62 |
$this->setAllRevisionsVarMappings( $asserter ); |
| 63 |
|
| 64 |
$siteInfoTemplate = $this->getDumpTemplatePath( 'SiteInfo', $schemaVersion ); |
| 65 |
$pagesTemplate = $this->getDumpTemplatePath( 'AllText', $schemaVersion ); |
| 66 |
|
| 67 |
$asserter->open( $nameFull ); |
| 68 |
$asserter->assertDumpHead( $siteInfoTemplate ); |
| 69 |
$asserter->assertDOM( $pagesTemplate ); |
| 70 |
$asserter->assertDumpEnd(); |
| 71 |
} |
| 72 |
|
| 73 |
public function testPrefetchPlain() { |
| 74 |
global $wgXmlDumpSchemaVersion; |
| 75 |
|
| 76 |
|
| 77 |
$revisions = [ |
| 78 |
$this->rev1_1->getId() => $this->rev1_1, |
| 79 |
$this->rev2_1->getId() => $this->rev2_1, |
| 80 |
$this->rev2_2->getId() => $this->rev2_2, |
| 81 |
$this->rev2_3->getId() => $this->rev2_3, |
| 82 |
$this->rev2_4->getId() => $this->rev2_4, |
| 83 |
$this->rev4_1->getId() => $this->rev4_1, |
| 84 |
]; |
| 85 |
|
| 86 |
$getPrefetchText = static function ( $pageid, $revid, $role ) use ( $revisions ) { |
| 87 |
$rev = $revisions[$revid]; |
| 88 |
$slot = $rev->getSlot( $role ); |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
return str_pad( "Prefetch: ({$pageid}/{$revid}/$role)", $slot->getSize(), '*' ); |
| 93 |
}; |
| 94 |
|
| 95 |
|
| 96 |
$prefetchMock = $this->getMockBuilder( BaseDump::class ) |
| 97 |
->onlyMethods( [ 'prefetch' ] ) |
| 98 |
->disableOriginalConstructor() |
| 99 |
->getMock(); |
| 100 |
$prefetchMock->method( 'prefetch' ) |
| 101 |
->willReturnCallback( $getPrefetchText ); |
| 102 |
|
| 103 |
|
| 104 |
$nameStub = $this->setUpStub( 'AllStubs', $wgXmlDumpSchemaVersion ); |
| 105 |
$nameFull = $this->getNewTempFile(); |
| 106 |
|
| 107 |
$dumper = new TextPassDumper( [ "--stub=file:" . $nameStub, |
| 108 |
"--output=file:" . $nameFull ] ); |
| 109 |
|
| 110 |
$dumper->prefetch = $prefetchMock; |
| 111 |
$dumper->reporting = false; |
| 112 |
$dumper->setDB( $this->getDb() ); |
| 113 |
|
| 114 |
|
| 115 |
$dumper->dump( WikiExporter::FULL, WikiExporter::TEXT ); |
| 116 |
|
| 117 |
|
| 118 |
$this->assertDumpSchema( $nameFull, $this->getXmlSchemaPath( $wgXmlDumpSchemaVersion ) ); |
| 119 |
|
| 120 |
$asserter = $this->getDumpAsserter( $wgXmlDumpSchemaVersion ); |
| 121 |
$this->setSiteVarMappings( $asserter ); |
| 122 |
$this->setAllRevisionsVarMappings( $asserter ); |
| 123 |
|
| 124 |
$siteInfoTemplate = $this->getDumpTemplatePath( 'SiteInfo', $wgXmlDumpSchemaVersion ); |
| 125 |
$pagesTemplate = $this->getDumpTemplatePath( 'AllText', $wgXmlDumpSchemaVersion ); |
| 126 |
|
| 127 |
$asserter->setVarMapping( |
| 128 |
'rev1_1_main_text', |
| 129 |
$getPrefetchText( $this->rev1_1->getPageId(), $this->rev1_1->getId(), SlotRecord::MAIN ) |
| 130 |
); |
| 131 |
$asserter->setVarMapping( |
| 132 |
'rev1_1_aux_text', |
| 133 |
$getPrefetchText( $this->rev1_1->getPageId(), $this->rev1_1->getId(), 'aux' ) |
| 134 |
); |
| 135 |
$asserter->setVarMapping( |
| 136 |
'rev2_1_main_text', |
| 137 |
$getPrefetchText( $this->rev2_1->getPageId(), $this->rev2_1->getId(), SlotRecord::MAIN ) |
| 138 |
); |
| 139 |
$asserter->setVarMapping( |
| 140 |
'rev2_2_main_text', |
| 141 |
$getPrefetchText( $this->rev2_2->getPageId(), $this->rev2_2->getId(), SlotRecord::MAIN ) |
| 142 |
); |
| 143 |
$asserter->setVarMapping( |
| 144 |
'rev2_3_main_text', |
| 145 |
$getPrefetchText( $this->rev2_3->getPageId(), $this->rev2_3->getId(), SlotRecord::MAIN ) |
| 146 |
); |
| 147 |
$asserter->setVarMapping( |
| 148 |
'rev2_4_main_text', |
| 149 |
$getPrefetchText( $this->rev2_4->getPageId(), $this->rev2_4->getId(), SlotRecord::MAIN ) |
| 150 |
); |
| 151 |
$asserter->setVarMapping( |
| 152 |
'rev4_1_main_text', |
| 153 |
$getPrefetchText( $this->rev4_1->getPageId(), $this->rev4_1->getId(), SlotRecord::MAIN ) |
| 154 |
); |
| 155 |
|
| 156 |
$asserter->open( $nameFull ); |
| 157 |
$asserter->assertDumpHead( $siteInfoTemplate ); |
| 158 |
$asserter->assertDOM( $pagesTemplate ); |
| 159 |
$asserter->assertDumpEnd(); |
| 160 |
} |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
private function checkpointHelper( $checkpointFormat = "file" ) { |
| 170 |
global $wgXmlDumpSchemaVersion; |
| 171 |
|
| 172 |
|
| 173 |
$nameStub = $this->getNewTempFile(); |
| 174 |
$nameOutputDir = $this->getNewTempDirectory(); |
| 175 |
|
| 176 |
$stderr = fopen( 'php://output', 'a' ); |
| 177 |
if ( $stderr === false ) { |
| 178 |
$this->fail( "Could not open stream for stderr" ); |
| 179 |
} |
| 180 |
|
| 181 |
$iterations = 32; |
| 182 |
|
| 183 |
|
| 184 |
$lastDuration = 0; |
| 185 |
$minDuration = 2; |
| 186 |
$checkpointAfter = 0.5; |
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
while ( $lastDuration < $minDuration ) { |
| 192 |
|
| 193 |
wfRecursiveRemoveDir( $nameOutputDir ); |
| 194 |
$this->assertTrue( wfMkdirParents( $nameOutputDir ), |
| 195 |
"Creating temporary output directory " ); |
| 196 |
$this->setUpStub( 'AllStubs', $wgXmlDumpSchemaVersion, $nameStub, $iterations ); |
| 197 |
$dumper = new TextPassDumper(); |
| 198 |
$dumper->loadWithArgv( [ "--stub=file:" . $nameStub, |
| 199 |
"--output=" . $checkpointFormat . ":" . $nameOutputDir . "/full", |
| 200 |
"--maxtime=1", |
| 201 |
"--buffersize=32768", |
| 202 |
"--checkpointfile=checkpoint-%s-%s.xml.gz" ] ); |
| 203 |
$dumper->setDB( $this->getDb() ); |
| 204 |
$dumper->maxTimeAllowed = $checkpointAfter; |
| 205 |
$dumper->stderr = $stderr; |
| 206 |
|
| 207 |
|
| 208 |
$ts_before = microtime( true ); |
| 209 |
$dumper->execute(); |
| 210 |
$ts_after = microtime( true ); |
| 211 |
$lastDuration = $ts_after - $ts_before; |
| 212 |
|
| 213 |
|
| 214 |
if ( $lastDuration < $minDuration ) { |
| 215 |
$old_iterations = $iterations; |
| 216 |
if ( $lastDuration > 0.2 ) { |
| 217 |
|
| 218 |
$factor = ( $minDuration + 0.5 ) / $lastDuration; |
| 219 |
if ( ( $factor > 1.1 ) && ( $factor < 100 ) ) { |
| 220 |
|
| 221 |
$iterations = (int)( $iterations * $factor ); |
| 222 |
} |
| 223 |
} |
| 224 |
|
| 225 |
if ( $old_iterations == $iterations ) { |
| 226 |
|
| 227 |
$iterations *= 2; |
| 228 |
} |
| 229 |
|
| 230 |
$this->assertLessThan( 50000, $iterations, |
| 231 |
"Emergency stop against infinitely increasing iteration " |
| 232 |
. "count ( last duration: $lastDuration )" ); |
| 233 |
} |
| 234 |
} |
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
$files = scandir( $nameOutputDir ); |
| 241 |
$this->assertTrue( asort( $files ), "Sorting files in temporary directory" ); |
| 242 |
$fileOpened = false; |
| 243 |
$lookingForPage = 1; |
| 244 |
$checkpointFiles = 0; |
| 245 |
|
| 246 |
$asserter = $this->getDumpAsserter(); |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
for ( $i = 0; $i < $iterations; ) { |
| 251 |
|
| 252 |
|
| 253 |
if ( !$fileOpened ) { |
| 254 |
$this->assertNotEmpty( $files, "No more existing dump files, " |
| 255 |
. "but not yet all pages found" ); |
| 256 |
$fname = array_shift( $files ); |
| 257 |
while ( $fname == "." || $fname == ".." ) { |
| 258 |
$this->assertNotEmpty( $files, "No more existing dump" |
| 259 |
. " files, but not yet all pages found" ); |
| 260 |
$fname = array_shift( $files ); |
| 261 |
} |
| 262 |
if ( $checkpointFormat == "gzip" ) { |
| 263 |
$this->gunzip( $nameOutputDir . "/" . $fname ); |
| 264 |
} |
| 265 |
$asserter->open( $nameOutputDir . "/" . $fname ); |
| 266 |
$asserter->assertDumpHead(); |
| 267 |
$fileOpened = true; |
| 268 |
$checkpointFiles++; |
| 269 |
} |
| 270 |
|
| 271 |
|
| 272 |
switch ( $lookingForPage ) { |
| 273 |
case 1: |
| 274 |
|
| 275 |
$asserter->assertPageStart( |
| 276 |
$this->pageId1 + $i * self::$numOfPages, |
| 277 |
NS_MAIN, |
| 278 |
$this->pageTitle1->getPrefixedText() |
| 279 |
); |
| 280 |
$asserter->assertRevision( |
| 281 |
$this->rev1_1->getId() + $i * self::$numOfRevs, |
| 282 |
$this->rev1_1->getComment()->text, |
| 283 |
$this->getSlotTextId( $this->rev1_1->getSlot( SlotRecord::MAIN ) ), |
| 284 |
false, |
| 285 |
$this->rev1_1->getSha1(), |
| 286 |
$this->getSlotText( $this->rev1_1->getSlot( SlotRecord::MAIN ) ) |
| 287 |
); |
| 288 |
$asserter->assertPageEnd(); |
| 289 |
|
| 290 |
$lookingForPage = 2; |
| 291 |
break; |
| 292 |
|
| 293 |
case 2: |
| 294 |
|
| 295 |
$asserter->assertPageStart( |
| 296 |
$this->pageId2 + $i * self::$numOfPages, |
| 297 |
NS_MAIN, |
| 298 |
$this->pageTitle2->getPrefixedText() |
| 299 |
); |
| 300 |
$asserter->assertRevision( |
| 301 |
$this->rev2_1->getId() + $i * self::$numOfRevs, |
| 302 |
$this->rev2_1->getComment()->text, |
| 303 |
$this->getSlotTextId( $this->rev2_1->getSlot( SlotRecord::MAIN ) ), |
| 304 |
false, |
| 305 |
$this->rev2_1->getSha1(), |
| 306 |
$this->getSlotText( $this->rev2_1->getSlot( SlotRecord::MAIN ) ) |
| 307 |
); |
| 308 |
$asserter->assertRevision( |
| 309 |
$this->rev2_2->getId() + $i * self::$numOfRevs, |
| 310 |
$this->rev2_2->getComment()->text, |
| 311 |
$this->getSlotTextId( $this->rev2_2->getSlot( SlotRecord::MAIN ) ), |
| 312 |
false, |
| 313 |
$this->rev2_2->getSha1(), |
| 314 |
$this->getSlotText( $this->rev2_2->getSlot( SlotRecord::MAIN ) ), |
| 315 |
$this->rev2_1->getId() + $i * self::$numOfRevs |
| 316 |
); |
| 317 |
$asserter->assertRevision( |
| 318 |
$this->rev2_3->getId() + $i * self::$numOfRevs, |
| 319 |
$this->rev2_3->getComment()->text, |
| 320 |
$this->getSlotTextId( $this->rev2_3->getSlot( SlotRecord::MAIN ) ), |
| 321 |
false, |
| 322 |
$this->rev2_3->getSha1(), |
| 323 |
$this->getSlotText( $this->rev2_3->getSlot( SlotRecord::MAIN ) ), |
| 324 |
$this->rev2_2->getId() + $i * self::$numOfRevs |
| 325 |
); |
| 326 |
$asserter->assertRevision( |
| 327 |
$this->rev2_4->getId() + $i * self::$numOfRevs, |
| 328 |
$this->rev2_4->getComment()->text, |
| 329 |
$this->getSlotTextId( $this->rev2_4->getSlot( SlotRecord::MAIN ) ), |
| 330 |
false, |
| 331 |
$this->rev2_4->getSha1(), |
| 332 |
$this->getSlotText( $this->rev2_4->getSlot( SlotRecord::MAIN ) ), |
| 333 |
$this->rev2_3->getId() + $i * self::$numOfRevs |
| 334 |
); |
| 335 |
$asserter->assertPageEnd(); |
| 336 |
|
| 337 |
$lookingForPage = 4; |
| 338 |
break; |
| 339 |
|
| 340 |
case 4: |
| 341 |
|
| 342 |
$asserter->assertPageStart( |
| 343 |
$this->pageId4 + $i * self::$numOfPages, |
| 344 |
NS_TALK, |
| 345 |
$this->pageTitle4->getPrefixedText() |
| 346 |
); |
| 347 |
$asserter->assertRevision( |
| 348 |
$this->rev4_1->getId() + $i * self::$numOfRevs, |
| 349 |
$this->rev4_1->getComment()->text, |
| 350 |
$this->getSlotTextId( $this->rev4_1->getSlot( SlotRecord::MAIN ) ), |
| 351 |
false, |
| 352 |
$this->rev4_1->getSha1(), |
| 353 |
$this->getSlotText( $this->rev4_1->getSlot( SlotRecord::MAIN ) ), |
| 354 |
false, |
| 355 |
"BackupTextPassTestModel", |
| 356 |
"text/plain" |
| 357 |
); |
| 358 |
$asserter->assertPageEnd(); |
| 359 |
|
| 360 |
$lookingForPage = 1; |
| 361 |
|
| 362 |
|
| 363 |
$i++; |
| 364 |
break; |
| 365 |
|
| 366 |
default: |
| 367 |
$this->fail( "Bad setting for lookingForPage ($lookingForPage)" ); |
| 368 |
} |
| 369 |
} |
| 370 |
$asserter->assertDumpEnd(); |
| 371 |
$fileOpened = false; |
| 372 |
|
| 373 |
|
| 374 |
$this->assertFalse( $fileOpened, "Currently read file still open?" ); |
| 375 |
$this->assertSame( [], $files, "Remaining unchecked files" ); |
| 376 |
|
| 377 |
|
| 378 |
$this->assertGreaterThan( |
| 379 |
1, |
| 380 |
$checkpointFiles, |
| 381 |
"expected more than 1 checkpoint to have been created. " |
| 382 |
. "Checkpoint interval is $checkpointAfter seconds, maybe your computer is too fast?" |
| 383 |
); |
| 384 |
|
| 385 |
$this->expectETAOutput(); |
| 386 |
} |
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
public function testCheckpointPlain() { |
| 395 |
$this->checkpointHelper(); |
| 396 |
} |
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
public function testCheckpointGzip() { |
| 414 |
$this->checkHasGzip(); |
| 415 |
$this->checkpointHelper( "gzip" ); |
| 416 |
} |
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
private function setUpStub( $templateName, $schemaVersion, $outFile = null, $iterations = 1 ) { |
| 435 |
$outFile ??= $this->getNewTempFile(); |
| 436 |
|
| 437 |
$templatePath = $this->getDumpTemplatePath( $templateName, $schemaVersion ); |
| 438 |
|
| 439 |
$asserter = $this->getDumpAsserter( $schemaVersion ); |
| 440 |
$this->setAllRevisionsVarMappings( $asserter ); |
| 441 |
|
| 442 |
$writer = new XmlDumpWriter( XmlDumpWriter::WRITE_STUB, $schemaVersion ); |
| 443 |
$content = $writer->openStream(); |
| 444 |
|
| 445 |
for ( $i = 0; $i < $iterations; $i++ ) { |
| 446 |
$asserter->setVarMapping( 'rev1_1_pageid', $this->pageId1 + $i * self::$numOfPages ); |
| 447 |
$asserter->setVarMapping( 'rev1_1_id', $this->rev1_1->getId() + $i * self::$numOfRevs ); |
| 448 |
|
| 449 |
$asserter->setVarMapping( 'rev2_1_pageid', $this->pageId2 + $i * self::$numOfPages ); |
| 450 |
$asserter->setVarMapping( 'rev2_1_id', $this->rev2_1->getId() + $i * self::$numOfRevs ); |
| 451 |
$asserter->setVarMapping( 'rev2_2_id', $this->rev2_2->getId() + $i * self::$numOfRevs ); |
| 452 |
$asserter->setVarMapping( 'rev2_3_id', $this->rev2_3->getId() + $i * self::$numOfRevs ); |
| 453 |
$asserter->setVarMapping( 'rev2_4_id', $this->rev2_4->getId() + $i * self::$numOfRevs ); |
| 454 |
|
| 455 |
$asserter->setVarMapping( 'rev4_1_pageid', $this->pageId4 + $i * self::$numOfPages ); |
| 456 |
$asserter->setVarMapping( 'rev4_1_id', $this->rev4_1->getId() + $i * self::$numOfRevs ); |
| 457 |
|
| 458 |
$asserter->setVarMapping( 'rev5_1_pageid', $this->pageId5 + $i * self::$numOfPages ); |
| 459 |
$asserter->setVarMapping( 'rev5_1_id', $this->rev5_1->getId() + $i * self::$numOfRevs ); |
| 460 |
|
| 461 |
$xml = file_get_contents( $templatePath ); |
| 462 |
$xml = $asserter->stripTestTags( $xml ); |
| 463 |
$xml = $asserter->resolveVars( $xml ); |
| 464 |
$content .= $xml; |
| 465 |
} |
| 466 |
$content .= $writer->closeStream(); |
| 467 |
|
| 468 |
$this->assertEquals( strlen( $content ), file_put_contents( |
| 469 |
$outFile, $content ), "Length of prepared stub" ); |
| 470 |
|
| 471 |
return $outFile; |
| 472 |
} |
| 473 |
} |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
class TextPassDumperDatabaselessTest extends MediaWikiLangTestCase { |
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
public function testBufferSizeSetting( $expected, $size, $msg ) { |
| 491 |
$dumper = new TextPassDumperAccessor(); |
| 492 |
$dumper->loadWithArgv( [ "--buffersize=" . $size ] ); |
| 493 |
$dumper->execute(); |
| 494 |
$this->assertEquals( $expected, $dumper->getBufferSize(), $msg ); |
| 495 |
} |
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
|
| 502 |
public static function bufferSizeProvider() { |
| 503 |
|
| 504 |
return [ |
| 505 |
[ 512 * 1024, 512 * 1024, "Setting 512 KiB is not effective" ], |
| 506 |
[ 8192, 8192, "Setting 8 KiB is not effective" ], |
| 507 |
[ 4096, 2048, "Could set buffer size below lower bound" ] |
| 508 |
]; |
| 509 |
} |
| 510 |
} |
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
class TextPassDumperAccessor extends TextPassDumper { |
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
|
| 532 |
public function getBufferSize() { |
| 533 |
return $this->bufferSize; |
| 534 |
} |
| 535 |
|
| 536 |
public function dump( $history, $text = null ) { |
| 537 |
return true; |
| 538 |
} |
| 539 |
} |