User::Config::UI - some helper-functions for User::Config UI-Generators
Within the User::Config::UI namespace the UI-Generators for User::Config reside. Additionaly this modul will provide some common functions for these.
User::Config
User::Config::UI::HTMLFormHandler - uses HTML::FormHandler to process and generate a HTML-Form
This will a hashref of hashes containing all options in all known modules.
The tree of the module-namespace is mapped on the references. Hashes with option will contain an additional key called is_option.
is_option
package Module; ... has_option option1; ... package Module::SubModule; ... has_option option2; ... use Data::Dumper; use User::Config::UI; print Dumper User::Config::UI::get_options
will generate the following
VAR1 => { Module => { option1 => { is_option => 1 }, SubModule => { option2 => { is_option => 1 } } } }
It is recommended for UI-Generators to use this function to generate their list of options.
If given in the initialization of an UI-object, this will specifiy a regular expression, all modules to configure must match.
By default all options in all modules will be shown.
Benjamin Tietz <benjamin@micronet24.de>
Copyright (C) 2011 by Benjamin Tietz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install User::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm User::Config
CPAN shell
perl -MCPAN -e shell install User::Config
For more information on module installation, please visit the detailed CPAN module installation guide.