MediaWiki REL1_39
recompressTracked.php
Go to the documentation of this file.
1<?php
29use Wikimedia\AtEase\AtEase;
30
32require __DIR__ . '/../CommandLineInc.php';
33
34if ( count( $args ) < 1 ) {
35 echo "Usage: php recompressTracked.php [options] <cluster> [... <cluster>...]
36Moves blobs indexed by trackBlobs.php to a specified list of destination clusters,
37and recompresses them in the process. Restartable.
38
39Options:
40 --procs <procs> Set the number of child processes (default 1)
41 --copy-only Copy only, do not update the text table. Restart
42 without this option to complete.
43 --debug-log <file> Log debugging data to the specified file
44 --info-log <file> Log progress messages to the specified file
45 --critical-log <file> Log error messages to the specified file
46";
47 exit( 1 );
48}
49
51$job->execute();
52
61 public $batchSize = 1000;
62 public $orphanBatchSize = 1000;
63 public $reportingInterval = 10;
64 public $numProcs = 1;
65 public $numBatches = 0;
68 public $copyOnly = false;
69 public $isChild = false;
70 public $childId = false;
71 public $noCount = false;
74 public $store;
76 private $blobStore;
77
78 private static $optionsWithArgs = [
79 'procs',
80 'child-id',
81 'debug-log',
82 'info-log',
83 'critical-log'
84 ];
85
86 private static $cmdLineOptionMap = [
87 'no-count' => 'noCount',
88 'procs' => 'numProcs',
89 'copy-only' => 'copyOnly',
90 'child' => 'isChild',
91 'child-id' => 'childId',
92 'debug-log' => 'debugLog',
93 'info-log' => 'infoLog',
94 'critical-log' => 'criticalLog',
95 ];
96
97 public static function getOptionsWithArgs() {
98 return self::$optionsWithArgs;
99 }
100
101 public static function newFromCommandLine( $args, $options ) {
102 $jobOptions = [ 'destClusters' => $args ];
103 foreach ( self::$cmdLineOptionMap as $cmdOption => $classOption ) {
104 if ( isset( $options[$cmdOption] ) ) {
105 $jobOptions[$classOption] = $options[$cmdOption];
106 }
107 }
108
109 return new self( $jobOptions );
110 }
111
112 public function __construct( $options ) {
113 foreach ( $options as $name => $value ) {
114 $this->$name = $value;
115 }
116 $esFactory = MediaWikiServices::getInstance()->getExternalStoreFactory();
117 $this->store = $esFactory->getStore( 'DB' );
118 if ( !$this->isChild ) {
119 $GLOBALS['wgDebugLogPrefix'] = "RCT M: ";
120 } elseif ( $this->childId !== false ) {
121 $GLOBALS['wgDebugLogPrefix'] = "RCT {$this->childId}: ";
122 }
123 $this->pageBlobClass = function_exists( 'xdiff_string_bdiff' ) ?
124 DiffHistoryBlob::class : ConcatenatedGzipHistoryBlob::class;
125 $this->orphanBlobClass = ConcatenatedGzipHistoryBlob::class;
126
127 $this->blobStore = MediaWikiServices::getInstance()
128 ->getBlobStoreFactory()
129 ->newSqlBlobStore();
130 }
131
132 public function debug( $msg ) {
133 wfDebug( "$msg" );
134 if ( $this->debugLog ) {
135 $this->logToFile( $msg, $this->debugLog );
136 }
137 }
138
139 public function info( $msg ) {
140 echo "$msg\n";
141 if ( $this->infoLog ) {
142 $this->logToFile( $msg, $this->infoLog );
143 }
144 }
145
146 public function critical( $msg ) {
147 echo "$msg\n";
148 if ( $this->criticalLog ) {
149 $this->logToFile( $msg, $this->criticalLog );
150 }
151 }
152
153 private function logToFile( $msg, $file ) {
154 $header = '[' . date( 'd\TH:i:s' ) . '] ' . wfHostname() . ' ' . posix_getpid();
155 if ( $this->childId !== false ) {
156 $header .= "({$this->childId})";
157 }
158 $header .= ' ' . WikiMap::getCurrentWikiDbDomain()->getId();
159 LegacyLogger::emit( sprintf( "%-50s %s\n", $header, $msg ), $file );
160 }
161
167 private function syncDBs() {
168 $dbw = wfGetDB( DB_PRIMARY );
170 $pos = $dbw->getPrimaryPos();
171 $dbr->primaryPosWait( $pos, 100000 );
172 }
173
177 public function execute() {
178 if ( $this->isChild ) {
179 $this->executeChild();
180 } else {
181 $this->executeParent();
182 }
183 }
184
188 public function executeParent() {
189 if ( !$this->checkTrackingTable() ) {
190 return;
191 }
192
193 $this->syncDBs();
194 $this->startChildProcs();
195 $this->doAllPages();
196 $this->doAllOrphans();
197 $this->killChildProcs();
198 }
199
204 private function checkTrackingTable() {
206 if ( !$dbr->tableExists( 'blob_tracking', __METHOD__ ) ) {
207 $this->critical( "Error: blob_tracking table does not exist" );
208
209 return false;
210 }
211 $row = $dbr->selectRow( 'blob_tracking', '*', '', __METHOD__ );
212 if ( !$row ) {
213 $this->info( "Warning: blob_tracking table contains no rows, skipping this wiki." );
214
215 return false;
216 }
217
218 return true;
219 }
220
227 private function startChildProcs() {
229
230 $cmd = 'php ' . Shell::escape( __FILE__ );
231 foreach ( self::$cmdLineOptionMap as $cmdOption => $classOption ) {
232 if ( $cmdOption == 'child-id' ) {
233 continue;
234 }
235 if ( in_array( $cmdOption, self::$optionsWithArgs ) && isset( $this->$classOption ) ) {
236 // @phan-suppress-next-line PhanTypeMismatchArgument False positive
237 $cmd .= " --$cmdOption " . Shell::escape( $this->$classOption );
238 } elseif ( $this->$classOption ) {
239 $cmd .= " --$cmdOption";
240 }
241 }
242 $cmd .= ' --child' .
243 ' --wiki ' . Shell::escape( $wiki ) .
244 ' ' . Shell::escape( ...$this->destClusters );
245
246 $this->childPipes = $this->childProcs = [];
247 for ( $i = 0; $i < $this->numProcs; $i++ ) {
248 $pipes = [];
249 $spec = [
250 [ 'pipe', 'r' ],
251 [ 'file', 'php://stdout', 'w' ],
252 [ 'file', 'php://stderr', 'w' ]
253 ];
254 AtEase::suppressWarnings();
255 $proc = proc_open( "$cmd --child-id $i", $spec, $pipes );
256 AtEase::restoreWarnings();
257 if ( !$proc ) {
258 $this->critical( "Error opening child process: $cmd" );
259 exit( 1 );
260 }
261 $this->childProcs[$i] = $proc;
262 $this->childPipes[$i] = $pipes[0];
263 }
264 $this->prevChildId = -1;
265 }
266
270 private function killChildProcs() {
271 $this->info( "Waiting for child processes to finish..." );
272 for ( $i = 0; $i < $this->numProcs; $i++ ) {
273 $this->dispatchToChild( $i, 'quit' );
274 }
275 for ( $i = 0; $i < $this->numProcs; $i++ ) {
276 $status = proc_close( $this->childProcs[$i] );
277 if ( $status ) {
278 $this->critical( "Warning: child #$i exited with status $status" );
279 }
280 }
281 $this->info( "Done." );
282 }
283
289 private function dispatch( ...$args ) {
290 $pipes = $this->childPipes;
291 $x = [];
292 $y = [];
293 $numPipes = stream_select( $x, $pipes, $y, 3600 );
294 if ( !$numPipes ) {
295 $this->critical( "Error waiting to write to child process. Aborting" );
296 exit( 1 );
297 }
298 for ( $i = 0; $i < $this->numProcs; $i++ ) {
299 $childId = ( $i + $this->prevChildId + 1 ) % $this->numProcs;
300 if ( isset( $pipes[$childId] ) ) {
301 $this->prevChildId = $childId;
302 $this->dispatchToChild( $childId, $args );
303
304 return;
305 }
306 }
307 $this->critical( "Unreachable" );
308 exit( 1 );
309 }
310
316 private function dispatchToChild( $childId, $args ) {
317 $args = (array)$args;
318 $cmd = implode( ' ', $args );
319 fwrite( $this->childPipes[$childId], "$cmd\n" );
320 }
321
325 private function doAllPages() {
327 $i = 0;
328 $startId = 0;
329 if ( $this->noCount ) {
330 $numPages = '[unknown]';
331 } else {
332 $numPages = $dbr->selectField( 'blob_tracking',
333 'COUNT(DISTINCT bt_page)',
334 # A condition is required so that this query uses the index
335 [ 'bt_moved' => 0 ],
336 __METHOD__
337 );
338 }
339 if ( $this->copyOnly ) {
340 $this->info( "Copying pages..." );
341 } else {
342 $this->info( "Moving pages..." );
343 }
344 while ( true ) {
345 $res = $dbr->select( 'blob_tracking',
346 [ 'bt_page' ],
347 [
348 'bt_moved' => 0,
349 'bt_page > ' . $dbr->addQuotes( $startId )
350 ],
351 __METHOD__,
352 [
353 'DISTINCT',
354 'ORDER BY' => 'bt_page',
355 'LIMIT' => $this->batchSize,
356 ]
357 );
358 if ( !$res->numRows() ) {
359 break;
360 }
361 foreach ( $res as $row ) {
362 $startId = $row->bt_page;
363 $this->dispatch( 'doPage', $row->bt_page );
364 $i++;
365 }
366 $this->report( 'pages', $i, $numPages );
367 }
368 $this->report( 'pages', $i, $numPages );
369 if ( $this->copyOnly ) {
370 $this->info( "All page copies queued." );
371 } else {
372 $this->info( "All page moves queued." );
373 }
374 }
375
382 private function report( $label, $current, $end ) {
383 $this->numBatches++;
384 if ( $current == $end || $this->numBatches >= $this->reportingInterval ) {
385 $this->numBatches = 0;
386 $this->info( "$label: $current / $end" );
387 MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->waitForReplication();
388 }
389 }
390
394 private function doAllOrphans() {
396 $startId = 0;
397 $i = 0;
398 if ( $this->noCount ) {
399 $numOrphans = '[unknown]';
400 } else {
401 $numOrphans = $dbr->selectField( 'blob_tracking',
402 'COUNT(DISTINCT bt_text_id)',
403 [ 'bt_moved' => 0, 'bt_page' => 0 ],
404 __METHOD__ );
405 if ( !$numOrphans ) {
406 return;
407 }
408 }
409 if ( $this->copyOnly ) {
410 $this->info( "Copying orphans..." );
411 } else {
412 $this->info( "Moving orphans..." );
413 }
414
415 while ( true ) {
416 $res = $dbr->select( 'blob_tracking',
417 [ 'bt_text_id' ],
418 [
419 'bt_moved' => 0,
420 'bt_page' => 0,
421 'bt_text_id > ' . $dbr->addQuotes( $startId )
422 ],
423 __METHOD__,
424 [
425 'DISTINCT',
426 'ORDER BY' => 'bt_text_id',
427 'LIMIT' => $this->batchSize
428 ]
429 );
430 if ( !$res->numRows() ) {
431 break;
432 }
433 $ids = [];
434 foreach ( $res as $row ) {
435 $startId = $row->bt_text_id;
436 $ids[] = $row->bt_text_id;
437 $i++;
438 }
439 // Need to send enough orphan IDs to the child at a time to fill a blob,
440 // so orphanBatchSize needs to be at least ~100.
441 // batchSize can be smaller or larger.
442 while ( count( $ids ) > $this->orphanBatchSize ) {
443 $args = array_slice( $ids, 0, $this->orphanBatchSize );
444 $ids = array_slice( $ids, $this->orphanBatchSize );
445 array_unshift( $args, 'doOrphanList' );
446 $this->dispatch( ...$args );
447 }
448 if ( count( $ids ) ) {
449 $args = $ids;
450 array_unshift( $args, 'doOrphanList' );
451 $this->dispatch( ...$args );
452 }
453
454 $this->report( 'orphans', $i, $numOrphans );
455 }
456 $this->report( 'orphans', $i, $numOrphans );
457 $this->info( "All orphans queued." );
458 }
459
463 public function executeChild() {
464 $this->debug( 'starting' );
465 $this->syncDBs();
466
467 while ( !feof( STDIN ) ) {
468 $line = rtrim( fgets( STDIN ) );
469 if ( $line == '' ) {
470 continue;
471 }
472 $this->debug( $line );
473 $args = explode( ' ', $line );
474 $cmd = array_shift( $args );
475 switch ( $cmd ) {
476 case 'doPage':
477 $this->doPage( intval( $args[0] ) );
478 break;
479 case 'doOrphanList':
480 $this->doOrphanList( array_map( 'intval', $args ) );
481 break;
482 case 'quit':
483 return;
484 }
485 MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->waitForReplication();
486 }
487 }
488
494 private function doPage( $pageId ) {
495 $title = Title::newFromID( $pageId );
496 if ( $title ) {
497 $titleText = $title->getPrefixedText();
498 } else {
499 $titleText = '[deleted]';
500 }
502
503 // Finish any incomplete transactions
504 if ( !$this->copyOnly ) {
505 $this->finishIncompleteMoves( [ 'bt_page' => $pageId ] );
506 $this->syncDBs();
507 }
508
509 $startId = 0;
510 $trx = new CgzCopyTransaction( $this, $this->pageBlobClass );
511
512 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
513 while ( true ) {
514 $res = $dbr->select(
515 [ 'blob_tracking', 'text' ],
516 '*',
517 [
518 'bt_page' => $pageId,
519 'bt_text_id > ' . $dbr->addQuotes( $startId ),
520 'bt_moved' => 0,
521 'bt_new_url IS NULL',
522 'bt_text_id=old_id',
523 ],
524 __METHOD__,
525 [
526 'ORDER BY' => 'bt_text_id',
527 'LIMIT' => $this->batchSize
528 ]
529 );
530 if ( !$res->numRows() ) {
531 break;
532 }
533
534 $lastTextId = 0;
535 foreach ( $res as $row ) {
536 $startId = $row->bt_text_id;
537 if ( $lastTextId == $row->bt_text_id ) {
538 // Duplicate (null edit)
539 continue;
540 }
541 $lastTextId = $row->bt_text_id;
542 // Load the text
543 $text = $this->blobStore->expandBlob( $row->old_text, $row->old_flags );
544 if ( $text === false ) {
545 $this->critical( "Error loading {$row->bt_rev_id}/{$row->bt_text_id}" );
546 continue;
547 }
548
549 // Queue it
550 if ( !$trx->addItem( $text, $row->bt_text_id ) ) {
551 $this->debug( "$titleText: committing blob with " . $trx->getSize() . " items" );
552 $trx->commit();
553 $trx = new CgzCopyTransaction( $this, $this->pageBlobClass );
554 $lbFactory->waitForReplication();
555 }
556 }
557 }
558
559 $this->debug( "$titleText: committing blob with " . $trx->getSize() . " items" );
560 $trx->commit();
561 }
562
576 public function moveTextRow( $textId, $url ) {
577 if ( $this->copyOnly ) {
578 $this->critical( "Internal error: can't call moveTextRow() in --copy-only mode" );
579 exit( 1 );
580 }
581 $dbw = wfGetDB( DB_PRIMARY );
582 $dbw->begin( __METHOD__ );
583 $dbw->update( 'text',
584 [ // set
585 'old_text' => $url,
586 'old_flags' => 'external,utf-8',
587 ],
588 [ // where
589 'old_id' => $textId
590 ],
591 __METHOD__
592 );
593 $dbw->update( 'blob_tracking',
594 [ 'bt_moved' => 1 ],
595 [ 'bt_text_id' => $textId ],
596 __METHOD__
597 );
598 $dbw->commit( __METHOD__ );
599 }
600
611 private function finishIncompleteMoves( $conds ) {
613 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
614
615 $startId = 0;
616 $conds = array_merge( $conds, [
617 'bt_moved' => 0,
618 'bt_new_url IS NOT NULL'
619 ] );
620 while ( true ) {
621 $res = $dbr->select( 'blob_tracking',
622 '*',
623 array_merge( $conds, [ 'bt_text_id > ' . $dbr->addQuotes( $startId ) ] ),
624 __METHOD__,
625 [
626 'ORDER BY' => 'bt_text_id',
627 'LIMIT' => $this->batchSize,
628 ]
629 );
630 if ( !$res->numRows() ) {
631 break;
632 }
633 $this->debug( 'Incomplete: ' . $res->numRows() . ' rows' );
634 foreach ( $res as $row ) {
635 $startId = $row->bt_text_id;
636 $this->moveTextRow( $row->bt_text_id, $row->bt_new_url );
637 if ( $row->bt_text_id % 10 == 0 ) {
638 $lbFactory->waitForReplication();
639 }
640 }
641 }
642 }
643
648 public function getTargetCluster() {
649 $cluster = next( $this->destClusters );
650 if ( $cluster === false ) {
651 $cluster = reset( $this->destClusters );
652 }
653
654 return $cluster;
655 }
656
662 private function doOrphanList( $textIds ) {
663 // Finish incomplete moves
664 if ( !$this->copyOnly ) {
665 $this->finishIncompleteMoves( [ 'bt_text_id' => $textIds ] );
666 $this->syncDBs();
667 }
668
669 $trx = new CgzCopyTransaction( $this, $this->orphanBlobClass );
670
671 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
672 $res = wfGetDB( DB_REPLICA )->select(
673 [ 'text', 'blob_tracking' ],
674 [ 'old_id', 'old_text', 'old_flags' ],
675 [
676 'old_id' => $textIds,
677 'bt_text_id=old_id',
678 'bt_moved' => 0,
679 ],
680 __METHOD__,
681 [ 'DISTINCT' ]
682 );
683
684 foreach ( $res as $row ) {
685 $text = $this->blobStore->expandBlob( $row->old_text, $row->old_flags );
686 if ( $text === false ) {
687 $this->critical( "Error: cannot load revision text for old_id={$row->old_id}" );
688 continue;
689 }
690
691 if ( !$trx->addItem( $text, $row->old_id ) ) {
692 $this->debug( "[orphan]: committing blob with " . $trx->getSize() . " rows" );
693 $trx->commit();
694 $trx = new CgzCopyTransaction( $this, $this->orphanBlobClass );
695 $lbFactory->waitForReplication();
696 }
697 }
698 $this->debug( "[orphan]: committing blob with " . $trx->getSize() . " rows" );
699 $trx->commit();
700 }
701}
702
708 public $parent;
711 public $cgz;
714 private $texts;
715
721 public function __construct( $parent, $blobClass ) {
722 $this->blobClass = $blobClass;
723 $this->cgz = false;
724 $this->texts = [];
725 $this->parent = $parent;
726 }
727
735 public function addItem( $text, $textId ) {
736 if ( !$this->cgz ) {
737 $class = $this->blobClass;
738 $this->cgz = new $class;
739 }
740 $hash = $this->cgz->addItem( $text );
741 $this->referrers[$textId] = $hash;
742 $this->texts[$textId] = $text;
743
744 return $this->cgz->isHappy();
745 }
746
747 public function getSize() {
748 return count( $this->texts );
749 }
750
754 public function recompress() {
755 $class = $this->blobClass;
756 $this->cgz = new $class;
757 $this->referrers = [];
758 foreach ( $this->texts as $textId => $text ) {
759 $hash = $this->cgz->addItem( $text );
760 $this->referrers[$textId] = $hash;
761 }
762 }
763
769 public function commit() {
770 $originalCount = count( $this->texts );
771 if ( !$originalCount ) {
772 return;
773 }
774
775 /* Check to see if the target text_ids have been moved already.
776 *
777 * We originally read from the replica DB, so this can happen when a single
778 * text_id is shared between multiple pages. It's rare, but possible
779 * if a delete/move/undelete cycle splits up a null edit.
780 *
781 * We do a locking read to prevent closer-run race conditions.
782 */
783 $dbw = wfGetDB( DB_PRIMARY );
784 $dbw->begin( __METHOD__ );
785 $res = $dbw->select( 'blob_tracking',
786 [ 'bt_text_id', 'bt_moved' ],
787 [ 'bt_text_id' => array_keys( $this->referrers ) ],
788 __METHOD__, [ 'FOR UPDATE' ] );
789 $dirty = false;
790 foreach ( $res as $row ) {
791 if ( $row->bt_moved ) {
792 # This row has already been moved, remove it
793 $this->parent->debug( "TRX: conflict detected in old_id={$row->bt_text_id}" );
794 unset( $this->texts[$row->bt_text_id] );
795 $dirty = true;
796 }
797 }
798
799 // Recompress the blob if necessary
800 if ( $dirty ) {
801 if ( !count( $this->texts ) ) {
802 // All have been moved already
803 if ( $originalCount > 1 ) {
804 // This is suspcious, make noise
805 $this->parent->critical(
806 "Warning: concurrent operation detected, are there two conflicting " .
807 "processes running, doing the same job?" );
808 }
809
810 return;
811 }
812 $this->recompress();
813 }
814
815 // Insert the data into the destination cluster
816 $targetCluster = $this->parent->getTargetCluster();
817 $store = $this->parent->store;
818 $targetDB = $store->getPrimary( $targetCluster );
819 $targetDB->clearFlag( DBO_TRX ); // we manage the transactions
820 $targetDB->begin( __METHOD__ );
821 $baseUrl = $this->parent->store->store( $targetCluster, serialize( $this->cgz ) );
822
823 // Write the new URLs to the blob_tracking table
824 foreach ( $this->referrers as $textId => $hash ) {
825 $url = $baseUrl . '/' . $hash;
826 $dbw->update( 'blob_tracking',
827 [ 'bt_new_url' => $url ],
828 [
829 'bt_text_id' => $textId,
830 'bt_moved' => 0, # Check for concurrent conflicting update
831 ],
832 __METHOD__
833 );
834 }
835
836 $targetDB->commit( __METHOD__ );
837 // Critical section here: interruption at this point causes blob duplication
838 // Reversing the order of the commits would cause data loss instead
839 $dbw->commit( __METHOD__ );
840
841 // Write the new URLs to the text table and set the moved flag
842 if ( !$this->parent->copyOnly ) {
843 foreach ( $this->referrers as $textId => $hash ) {
844 $url = $baseUrl . '/' . $hash;
845 $this->parent->moveTextRow( $textId, $url );
846 }
847 }
848 }
849}
serialize()
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
wfHostname()
Get host name of the current machine, for use in error reporting.
Class to represent a recompression operation for a single CGZ blob.
RecompressTracked $parent
ConcatenatedGzipHistoryBlob false $cgz
addItem( $text, $textId)
Add text.
commit()
Commit the blob.
recompress()
Recompress text after some aberrant modification.
__construct( $parent, $blobClass)
Create a transaction from a RecompressTracked object.
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipp...
External storage in a SQL database.
getPrimary( $cluster)
Get a primary database connection for the specified cluster.
store( $location, $data)
Insert a data item into a given location.string|bool The URL of the stored data item,...
PSR-3 logger that mimics the historic implementation of MediaWiki's former wfErrorLog logging impleme...
Service locator for MediaWiki core services.
Executes shell commands.
Definition Shell.php:46
Service for storing and loading Content objects.
Maintenance script that moves blobs indexed by trackBlobs.php to a specified list of destination clus...
executeChild()
Main entry point for worker processes.
moveTextRow( $textId, $url)
Atomic move operation.
execute()
Execute parent or child depending on the isChild option.
static newFromCommandLine( $args, $options)
getTargetCluster()
Returns the name of the next target cluster.
executeParent()
Execute the parent process.
ExternalStoreDB $store
static getCurrentWikiId()
Definition WikiMap.php:303
static getCurrentWikiDbDomain()
Definition WikiMap.php:293
$line
Definition mcc.php:119
if( $line===false) $args
Definition mcc.php:124
const DB_REPLICA
Definition defines.php:26
const DB_PRIMARY
Definition defines.php:28
const DBO_TRX
Definition defines.php:12
$optionsWithArgs
if(count( $args)< 1) $job
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition router.php:42
$header