WE::DB::Glossary - glossary data database.
my $u = WE::DB::Glossary->new(undef, $glossary_db_file, %args); $u->add_entry(Keyword => ..., Description => ...); $glossary_obj = $u->get_entry($keyword);
Database for administration of glossary entries. You can add, delete, modify and retrieve glossary entries.
The glossary entries are
WE::GlossaryObj objects with the following members:
The keyword for this entry. The keyword is also used as the key in the database hash.
The descriptive text for this keyword. The value is opaque and may be language-dependent (e.g. by using WE::Util::LangString), HTML or plain text or whatever.
The following methods are defined for
Add a glossary object with Keyword and Description. If
-force is set to true, then existing entries will get overwritten, otherwise an exception will be raised.
Like the other add_entry() method, but use a pre-build
WE::GlossaryObj object instead.
Delete the named entry.
WE::GlossaryObj object for the specified $keyword or undef.
Retrieve the description element for the specified $keyword or undef.
Return a list of
WE::GlossaryObjs which keywords match the given regular expression. NYI.
Create a regular expression with all keywords used in the database. The $filter is optional and should be a code reference accepting the keyword as first parameter and return a boolean value for acceptance.
Slaven Rezic - email@example.com