Krang::CGI::Media - web interface to manage media
use Krang::ClassLoader 'CGI::Media';
my $app = pkg('CGI::Media')->new();
$app->run();
Krang::CGI::Media provides a web-based system through which users can add, modify, delete, check out, or publish media.
Following are descriptions of all the run-modes provided by Krang::CGI::Media.
The default run-mode (start_mode) for Krang::CGI::Media is 'add'.
The find mode allows the user to run simple and advanced searches on live media objects, which will be listed on paging view 'Find Media'.
From this paging view the user may choose to view, edit or retire an object, or select a set of objects to be checked out to the workspace, published or deleted (depending on the user's permission set).
The list_retired mode allows the user to run simple and advanced searches on retired media objects, which will be listed on paging view 'Retired Media'.
From this paging view the user may choose to view or unretire an object, or select a set of objects to be deleted (depending on the user's permission set).
This method is deprecated, but left in here for backwards compatibility.
The find mode allows the user to run an ``advanced search'' on media objects, which will be listed on a paging view.
From this paging view the user may choose to edit or view an object, or select a set of objects to be deleted.
List all active media. Provide links to view each media object. If the user has 'checkin all' admin abilities then checkboxes are provided to allow the media to be checked-in.
The ``add_media'' run-mode displays the form through which new Media objects may be added to Krang.
Save the new media object, then check it in. Redirect to My Workspace afterwards, even tho the media object will not be there.
Saves the new object and redirects to edit screen (Triggered by 'create' button.)
Checks out the media object identified by media_id and sends the user to edit.
The ``edit'' mode displays the form through which users may edit existing Media objects.
Validate and save the form content to the media object. Redirect the user to their Workspace.
Validate and save the form content to the media object. Checkin media object. Redirect the user to their Workspace.
Validate and save the form content to the media object. Return the user to the edit screen.
Trashes the media object specified by CGI form parameter 'media_id'. Redirect user to Workspace.
Trashes the media objects which have been selected (checked) from the
find mode list view. This mode expects selected media objects to be
specified in the CGI param krang_pager_rows_checked.
Retires the media objects which have been selected (checked) from the
find mode list view. This mode expects selected media objects to be
specified in the CGI param krang_pager_rows_checked.
This mode saves the current data to the session and passes control to edit schedule for media.
The purpose of this mode is to hand the user off to the associate contribs screen. This mode writes changes back to the media object without calling save(). When done, it performs an HTTP redirect to:
contributor.pl?rm=associate_media
This mode writes changes back to the media object, calls save() and
then redirects to publisher.pl to publish the media object.
This mode writes changes back to the media object, calls save() and
then redirects to publisher.pl to preview the media object.
The purpose of this mode is to hand the user off to the log viewing screen. This mode writes changes back to the media object without calling save(). When done, it performs an HTTP redirect to history.pl.
The purpose of this mode is to hand the user off to the log viewing screen but preserving where we came from.
Display the specified media object in a view form.
Display the specified version of the media object in a view form.
Send the user to an edit screen, replacing the object with the specified version of itself.
Checkin all the media which were checked on the list_active screen.
Checkout all the media which were checked on the list_active screen.
This mode saves the current data to the session and jumps to editing an element within the media.
This mode saves the current element data to the session and goes to the bulk edit mode.
Saves and changes the bulk edit separator, returning to edit.
This mode saves the current element data to the session and goes to the edit mode.
This mode saves the current element data to the session and jumps to edit the parent of this element.
Move media to the retire and return to the Find Media screen.
Move media from retire back to live. If a DuplicateURL conflict occurs, leave the media retired and alert the user.