The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

CatalystX::Usul::Controller::Admin::Config - Editor for config files

Version

Describes v0.17.$Rev: 1 $

Synopsis

   package YourApp::Controller::Admin;

   use CatalystX::Usul::Moose;

   BEGIN { extends q(CatalystX::Usul::Controller::Admin) }

   __PACKAGE__->build_subcontrollers;

Description

CRUD methods for the configuration files

Configuration and Environment

Defines the following list of attributes

button_class

A non empty simple string which defaults to Config::Buttons. The model class for button widgets

credential_class

A non empty simple string which defaults to Config::Credentials. The model class for database login credentials

field_class

A non empty simple string which defaults to Config::Fields. The model class for input field widgets

key_class

A non empty simple string which defaults to Config::Keys. The model class for form keys

message_class

A non empty simple string which defaults to Config::Messages. The model class for GNU Gettext messages

template_class

A non empty simple string which defaults to Templates. The model class for Toolkit::Template templates

Subroutines/Methods

config_base

Stash some parameters used by all the other actions which chain off this one

configuration

Redirects to default configuration page

buttons_delete

Called in response to the Delete button on the "buttons_view" page being pressed, this method deletes the currently selected button definition

buttons_save

Called in response to the Insert or Save buttons on the "buttons_view" page being pressed, this method either updates the currently selected button definition or inserts a new one

buttons_view

Displays the button definition form. Button definitions define the help, prompt and error text associated with a form submission image button

credentials

Displays the credential definition form. Credentials contain the data used to connect to a database

credentials_delete

Called in response to the Delete button on the "credentials" page being pressed, this method deletes the currently selected credential definition

credentials_save

Called in response to the Insert or Save buttons on the "credential" page being pressed, this method either updates the currently selected credentials or inserts a new one

fields_delete

Called in response to the Delete button on the "fields_view" page being pressed, this method deletes the currently selected fields definition

fields_save

Called in response to the Insert or Save buttons on the "fields_view" page being pressed, this method either updates the currently selected fields definition or inserts a new one

fields_view

Displays the fields definition form. Field definitions define the attributes passed to the HTML::FormWidgets class that is used by the view to create user interface widgets

globals

Displays the globals attributes form. Global attributes are loaded into the "top level" of the stash

globals_save

Called in response to the Save buttons on the "globals" page being pressed

keys_delete

Called in response to the Delete button on the "keys_view" page being pressed, this method deletes the currently selected keys definition

keys_save

Called in response to the Insert or Save buttons on the "keys_view" page being pressed, this method either updates the currently selected keys definition or inserts a new one

keys_view

Displays the keys definition form. Keys definitions define the attributes that CatalystX::Usul::PersistentState uses

messages_delete

Called in response to the Delete button on the "messages_view" page being pressed, this method deletes the currently selected message definition

messages_save

Called in response to the Insert or Save buttons on the "messages_view" page being pressed, this method either updates the currently selected message definition or inserts a new one

messages_view

Displays the message definition form. Messages are language dependent and are used to localize output

templates_delete

Called in response to the Delete button on the "templates_view" page being pressed, this method deletes the currently selected template file

templates_save

Called in response to the Insert or Save buttons on the "templates_view" page being pressed, this method either updates the currently selected template or creates a new one

templates_view

Displays the template form. Templates define the contents of a page

Diagnostics

None

Dependencies

CatalystX::Usul::Controller
CatalystX::Usul::TraitFor::Controller::PersistentState

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2014 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE