<<

NAME

C4::Plugins::Base - Base Module for plugins

store_data

store_data allows a plugin to store key value pairs in the database for future use.

usage: $self->store_data({ param1 => 'param1val', param2 => 'param2value' })

retrieve_data

retrieve_data allows a plugin to read the values that were previously saved with store_data

usage: my $value = $self->retrieve_data( $key );

get_template

get_template returns a Template object. Eventually this will probably be calling C4:Template, but at the moment, it does not.

get_qualified_table_name

To avoid naming conflict, each plugins tables should use a fully qualified namespace. To avoid hardcoding and make plugins more flexible, this method will return the proper fully qualified table name.

usage: my $table = $self->get_qualified_table_name( 'myTable' );

get_plugin_http_path

To access a plugin's own resources ( images, js files, css files, etc... ) a plugin will need to know what path to use in the template files. This method returns that path.

usage: my $path = $self->get_plugin_http_path();

go_home

   go_home is a quick redirect to the Koha plugins home page

AUTHOR

Kyle M Hall <kyle.m.hall@gmail.com>

<<