Catalyst::Helper::Model::UserConfig - Helper Class to generate Catalyst Models intefacing User::Config
myapp_create.pl Model Configuration UserConfig [DB_Type] [DB_Args]
This will create a new model-class within a catalyst app. DB_Type may be replaced one of the User::Config::DB. DB_Args depend on them. currently supported are the following types
This will use the default memory backed database interface. This doesn't support any arguments.
This will use DBIx::Class for the storage of the values. The db-args will be the connection-string needed to connect to the database.
myapp_create.pl Model Configuration UserConfig DBIC dbi:SQlite:database.db MyApp::Schema MyResulSet
The order for the arguments is the database-string, the schema-class and the resultset. See User::Config::DB::DBIC
This will use a table in a given database for storing all values in a single keyed table. The synopsis would be eg.
myapp_create.pl Model Configuration UserConfig Keyed dbi:SQlite:database.db tablename
See User::Config::DB::Keyed
This will use User::Config::DB::Ldap as store. If no argument is given, the ldap-connection needed will be retrieved using <$c-user->ldap_connection>, so your Authentication::Store must use Ldap. If only one arg is given, this will be interpreted as code to retrieve a bound Net::Ldap object. Otherwise four parameters are needed as following:
<$c-
myapp_create.pl Model Configuration UserConfig Ldap host rootdn binddn bindpwd
In all cases the default parameter counting can be omitted by inserting '--' and adding explicit pairs of keys and values as used in the initializer.
generates the class
generates tests for the new class
Catalyst
User::Config
User::Config::Manual
Benjamin Tietz <benjamin@micronet24.de>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Helper::Model::UserConfig, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Helper::Model::UserConfig
CPAN shell
perl -MCPAN -e shell install Catalyst::Helper::Model::UserConfig
For more information on module installation, please visit the detailed CPAN module installation guide.