NAME
Zoidberg::Fish - Base class for loadable Zoidberg plugins
SYNOPSIS
package My::Dynamic::ZoidPlugin
use base 'Zoidberg::Fish';
DESCRIPTION
Base class for loadable Zoidberg plugins has many stubs
to provide compatability with Zoidberg
Ones this base class is used your module looks and smells
like fish -- Zoidberg WILL eat it.
See other (?) documentation on how to load these objects
in Zoidberg.
EXPORT
None by default.
METHODS
new()
Simple constructor
init($parent, \%config, $zoid_name)
sets:
$self->{parent} a reference to parent Zoidberg object
$self->{config} hash with some config
$self->{zoid_name} name as known by parent object
calls postinit
postinit()
to be overloaded, is called by init
parent()
returns ref to parent
print()
calls parent->print
config()
return ref to config
event($event_name, @_)
is called by parent when event is broadcasted
precmd()
stub event
postcmd()
stub event
broadcast_event($event_name, @_)
calls parent->broadcast_event
register_event($event_name)
register self by parent for event $event_name
this means that when this event occurs
$self->event is called
unregister_event($event_name)
unregister self for event $event_name
unregister_all_events()
unregister self for event all events
registered_events()
list events self is registered for
help()
stub help function, should return string
round_up()
is called when parent wants to stop
or when sudden DESTROY occurs
AUTHOR
R.L. Zwart, <carlos@caremail.nl>
Copyright (c) 2002 Raoul L. Zwart. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://zoidberg.sourceforge.net