NAME

Data::Phrasebook::Loader::Base - base loader class

SYNOPSIS

N/A

DESCRIPTION

Data::Phrasebook::Loader::Base acts as a base class for phrasebook plugins.

INHERITABLE METHODS

new

new merely creates a new instance. Nothing exciting. Override the init method to augment functionality, but be sure to call this one.

load

load is an abstract method here. You must define your own in your subclass.

get

get is an abstract method here. You must define your own in your subclass.

CONSTRUCTOR

new

new takes one optional named argument: the class. It returns a new instance to the class. Any further arguments to new are given to the new method of the appropriate class.

If no class is specified the default class of 'Text' is used.

my $loader = Data::Phrasebook::Loader->new();

my $xmlloader = Data::Phrasebook::Loader->new(
    class => 'XML',
);

SEE ALSO

Data::Phrasebook, Data::Phrasebook::Loader.

AUTHOR

Barbie, <<barbie@cpan.org> > for Miss Barbell Productions, http://www.missbarbell.co.uk

Birmingham Perl Mongers, http://birmingham.pm.org/

COPYRIGHT AND LICENSE

Copyright (C) 2005 Barbie for Miss Barbell Productions
All Rights Reserved.

This module is free software; you can redistribute it and/or 
modify it under the same terms as Perl itself.

The full text of the licences can be found in the F<Artistic> and
F<COPYING> files included with this module, or in L<perlartistic> and
L<perlgpl> in Perl 5.8.1 or later.