| 1 | package MediaWiki::DumpFile; | ||||||||||
| 2 | |||||||||||
| 3 | 4 | our $VERSION = '0.2.2'; | |||||||||
| 4 | |||||||||||
| 5 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 4 | ▶ | use Carp qw(croak); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 10 | 3 | my ($class, %files) = @_; | |||||||||
| 11 | 3 | my $self = {}; | |||||||||
| 12 | |||||||||||
| 13 | 3 | bless($self, $class); | |||||||||
| 14 | |||||||||||
| 15 | 3 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 2 | ▶ | sub sql { | ||||||||
|
Subroutine
sql: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||
| 19 | 2 | ▶ | if (! defined($_[1])) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | croak "must specify a filename or open filehandle"; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 2 | require MediaWiki::DumpFile::SQL; | |||||||||
| 24 | |||||||||||
| 25 | 2 | return MediaWiki::DumpFile::SQL->new($_[1]); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 2 | ▶ | sub pages { | ||||||||
|
Subroutine
pages: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 29 | 2 | my ($class, @args) = @_; | |||||||||
| 30 | 2 | require MediaWiki::DumpFile::Pages; | |||||||||
| 31 | |||||||||||
| 32 | 2 | return MediaWiki::DumpFile::Pages->new(@args); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 2 | ▶ | sub fastpages { | ||||||||
|
Subroutine
fastpages: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||
| 36 | 2 | ▶ | if (! defined($_[1])) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | 0 | croak "must specify a filename or open filehandle"; | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 2 | require MediaWiki::DumpFile::FastPages; | |||||||||
| 41 | |||||||||||
| 42 | 2 | return MediaWiki::DumpFile::FastPages->new($_[1]); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 4 | 1; | |||||||||
| 46 | |||||||||||
| 47 | __END__ | ||||||||||