NAME

User::Config::UI - some helper-functions for User::Config UI-Generators

DESCRIPTION

Within the User::Config::UI namespace the UI-Generators for User::Config reside. Additionaly this modul will provide some common functions for these.

SEE ALSO

User::Config

Known UI-Generators

User::Config::UI::HTMLFormHandler - uses HTML::FormHandler to process and generate a HTML-Form

EXPORT

User::Config::UI::get_options

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.

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.

ATTRIBUTES

modulefilter

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.

AUTHOR

Benjamin Tietz <benjamin@micronet24.de>

COPYRIGHT AND LICENSE

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.