DESCRIPTIONAction to handle management of MojoMojo. Click the admin link at the bottom of the page while logged in as admin to access these functions.
autoAccess control. Only administrators should access functions in this controller.
settings ( /.admin )Show settings screen.
user ( .admin/user )User listing with pager, for enabling/disabling users.
role ( .admin/role )Role listing, creation and assignment.
create_role ( .admin/create_role )Role creation page.
edit_role ( .admin/role/ )Role edit page.
handle_role_formHandle role form processing. Returns true when a submitted form was actually processed.
update_user ( *private*)Update user based on user listing.
precompile_pagesMake a formatted version of content body and store it in content.precompiled. This makes MojoMojo go zing, when loading content for page requests.
Depending on the number of pages, and versions of them, this could take some minutes. For 2000 page versions on a 2.4 GHz desktop this script took about 3 minutes to run.
deleteDelete a page and its descendants. This is in MojoMojo::Controller::Admin because we are restricting page deletion to admins only for the time being.
TODO: this method should reside in the Model, not in a Controller (issue #87).
AUTHORMarcus Ramberg <[email protected]>
LICENSEThis library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.