CGI::Wiki::Plugin - A base class for CGI::Wiki plugins.
Provides methods for accessing the backend store, search and formatter objects of the CGI::Wiki object that a plugin instance is registered with.
package CGI::Wiki::Plugin::Foo; use vars qw( @ISA ); @ISA = qw( CGI::Wiki::Plugin); sub new { my $class = shift; return bless {}, $class; } # And then in code: my $wiki = CGI::Wiki->new( ... ); my $plugin = CGI::Wiki::Plugin::Foo->new; $wiki->register_plugin( plugin => $plugin ); my $node = $plugin->datastore->retrieve_node( "Home" );
Returns the backend store object, or undef if the register_plugin method hasn't been called on a CGI::Wiki object yet.
undef
register_plugin
Returns the backend search object, or undef if the register_plugin method hasn't been called on a CGI::Wiki object yet, or if the wiki object had no search object defined.
Returns the backend formatter object, or undef if the register_plugin method hasn't been called on a CGI::Wiki object yet.
CGI::Wiki
Kake Pugh (kake@earth.li).
Copyright (C) 2003 Kake Pugh. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::Wiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Wiki
CPAN shell
perl -MCPAN -e shell install CGI::Wiki
For more information on module installation, please visit the detailed CPAN module installation guide.