Krang::CGI::History - web interface to view history logs
use Krang::ClassLoader 'CGI::History';
my $app = pkg('CGI::History')->new();
$app->run();
Krang::CGI::History provides the log screen in Krang which displays
the history entries associated with a given object.
Following are descriptions of all the run-modes provided by
Krang::CGI::History. The default (and sole) run-mode for
Krang::CGI::History is 'show'.
- show
Display the log data associate with an object. Three types of objects
have history - templates, media and stories. The following parameters
are used by this run-mode:
- story_id
- media_id
- template_id
One of these (and only one) must be set to the ID of the object in
question.
- history_return_script
This must name the script to return to when the user clicks the return
button. For example, when calling history.pl from story.pl I would
include:
<input name=history_return_script value=story.pl type=hidden>
history_return_params
This must be set to a list of key-value pairs which will be submitted
back to the script specified by history_return_script. For example,
to return to story edit mode after viewing the log these parameters
might be used:
<input name=history_return_params value=rm type=hidden>
<input name=history_return_params value=edit type=hidden>