NAME
Apache::Wyrd::Interfaces::IndexUser - Convenience Class
SYNOPSIS
sub
_startup {
my
(
$self
) =
@_
;
$self
->_init_index;
}
sub
_format_output {
my
(
$self
) =
@_
;
$self
->
index
->update_entry(
$self
);
...
}
sub
_shutdown {
my
(
$self
) =
@_
;
$self
->_dispose_index;
}
DESCRIPTION
A very simple and lazy inteface for invoking a BASECLASS::Index object as an index and storing it as $self->{index};
METHODS
- _init_index
-
Invoke a handle to a new default index (assuming the class BASECLASS::Index holds a default definition and put it in the index data key of the Wyrd. It can then be used at any point in the body of the Wyrd's perl code.
- _init_index
-
Shutdown the index and dispose of the handle. Must be called to avoid database/dbfile handle "leaks".
AUTHOR
Barry King <wyrd@nospam.wyrdwright.com>
SEE ALSO
LICENSE
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd
.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 38:
'=item' outside of any '=over'
- Around line 73:
You forgot a '=back' before '=head1'