Data::Phrasebook::Loader::Base - Base loader plugin class.


Data-Phrasebook documentation Contained in the Data-Phrasebook distribution.

Index


Code Index:

NAME

Top

Data::Phrasebook::Loader::Base - Base loader plugin class.

SYNOPSIS

Top

  $class->new( %attributes );

DESCRIPTION

Top

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

CONSTRUCTOR

Top

new

new instantiates the plugin object, creating a blessed hash of any attributes passed as arguments.

INHERITABLE METHODS

Top

load

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

get

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

dicts

dicts is an abstract method here. You must define your own in your subclass. Returns the list of dictionaries available.

keywords

keywords is an abstract method here. You must define your own in your subclass. Returns the list of keywords available.

class

Returns the current class of loader.

SEE ALSO

Top

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

SUPPORT

Top

Please see the README file.

AUTHOR

Top

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

COPYRIGHT AND LICENSE

Top


Data-Phrasebook documentation Contained in the Data-Phrasebook distribution.
package Data::Phrasebook::Loader::Base;
use strict;
use warnings FATAL => 'all';
use base qw( Data::Phrasebook::Debug );
use Carp qw( croak );

use vars qw($VERSION);
$VERSION = '0.31';

my $something = 0;

sub new {
    my $self = shift;
    my %hash = @_;
    ($hash{class}) = $self =~ /.*::(.*)$/;
    $self->store(3,"$self->new IN")	if($self->debug);
    my $atts = \%hash;
    bless $atts, $self;
    return $atts;
}

sub load     { return }
sub get      { return }
sub dicts    { return () }
sub keywords { return () }
sub class    { return shift->{class} }

1;

__END__