Krang::CGI::Site - Abstract of web application....
use Krang::ClassLoader 'CGI::Site';
my $app = pkg('CGI::Site')->new();
$app->run();
Overview of functionality and purpose of web application module
Krang::CGI::Site...
##############################
##### RUN-MODE METHODS #####
##############################
- add
This screen allows the end-user to add a new Site object.
- add_cancel
Cancels edit of site object on ``Add'' screen and returns to 'search' run mode.
- add_save
Saves changes to the save object the end-user enacted on the 'Add' screen. The
user is sent to 'search' if save succeeds and back to the 'Add' screen if it
fails.
- add_save_stay
Validates changes to the site from the 'Add' screen, saves the updated object
to the database, and returns to the 'Edit' screen.
- delete
Deletes the user from 'Edit' screen and redirects to 'search' run mode.
It expects a 'site_id' query param.
- delete_selected
Deletes Site objects selected from the 'Search' screen. Returns to 'Search'
afterwards.
This mode expects the 'krang_pager_rows_checked' param which should contain an
array of 'site_id's signifying the user objects to be deleted.
- edit
Display a screen allowing the end-user to edit the Site object selected from
the 'search' screen.
This run mode expects a 'site_id' query param and it will croak if it's missing
or invalid.
N.B - propagate query params supercede object field values in populating form
fields, so errant values are preserved for correction.
- edit_cancel
Cancels edit of site object on ``Edit'' screen and returns to 'search' run
mode.
- edit_save
Saves changes to the site object the end-user enacted on the 'Edit' screen.
The user is sent to 'search' if save succeeds and back to the 'Edit' screen if
it fails.
- edit_save_stay
Validates changes to the site from the 'Edit' screen, saves the updated object
to the database, and returns to the 'Edit' screen.
- search
Displays a list of Site objects based on the passed search criteria. If no
criteria are passed, a list of all sites on the system are returned. As a
simple search, the 'preview_path', 'preview_url', 'publish_path', 'site_id',
and 'url' fields are searched.
The run mode accepts the parameter ``search_filter'' which is used to perform
simple searches.
- view
View the attributes of the site object.