43 $id = (int)$this->getArg( 0 );
45 $lookup = $this->getServiceContainer()->getRevisionLookup();
46 $rev = $lookup->getRevisionById( $id );
48 $this->fatalError(
"Row not found" );
51 $content = $rev->getContent( SlotRecord::MAIN );
53 $this->fatalError(
"Text not found" );
56 $blobStore = $this->getServiceContainer()->getBlobStore();
57 $slot = $rev->getSlot( SlotRecord::MAIN );
58 $text = $blobStore->getBlob( $slot->getAddress() );
60 $this->output(
"Text length: " . strlen( $text ) .
"\n" );
61 $this->output( substr( $text, 0, 100 ) .
"\n" );