DBIx::CodeKit - Universal Code Table Interface
use DBIx::CodeKit; my $ck = new DBIx::CodeKit($dbh, table => 'ck_code', getparam => sub { $cgi->param(shift) }, getparams => sub { $cgi->param(shift.'[]') } );
$str = $ck->desc( $code_set, $code_code); $str = $ck->ucfirst($code_set, $code_code); $str = $ck->ucwords($code_set, $code_code);
$str = $ck->data( $code_set, $code_code);
var_name => 'start_day' value => $start_day default => 1 subset => [ 1, 2, 3, 4, 5 ] options => 'onchange="submit()"'
$str = $ck->select($code_set, select_prompt => "Code set description?", blank_prompt => "None" ); $str = $ck->radio($code_set, blank_prompt => "None", sep => "<br>\n" );
$str = $ck->multiple($code_set, size => 10 ); $str = $ck->checkbox($code_set, sep => "<br>\n" );
$rows = $ck->code_set($code_set);
$ck->remove($code_set, $code_code); ( $code_desc, $code_order, $code_flag ) = $ck->get($code_set, $code_code); $ck->put($code_set, $code_code, $code_desc, $code_order, $code_flag);
CodeKit is an interface to a universal database code table. CodeKit takes all of the programming work out of maintaining multiple database code definition sets.
The code administration page lets you define new virtual code tables and enter all codes and their descriptions. Perl and PHP classes retrieve the code descriptions and automatically generate HTML code selection elements.
For news and updates visit the CodeKit home page:
http://www.webbysoft.com/codekit
For a full featured multilingual universal code table visit the BabelKit home page:
http://www.webbysoft.com/babelkit
Contact John Gorman at http://www.webbysoft.com to report bugs, request features, or for database design and programming assistance.
Copyright (C) 2003 John Gorman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl or the LGPL.
To install DBIx::CodeKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::CodeKit
CPAN shell
perl -MCPAN -e shell install DBIx::CodeKit
For more information on module installation, please visit the detailed CPAN module installation guide.