Difference between revisions of "API:EPrints/Plugin/Screen"
(Created page with '<!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' com…') |
(No difference)
|
Revision as of 15:26, 25 July 2013
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
NAME
EPrints::Plugin::Screen
@params = $screen->hidden_bits()
Returns a key-value list of values that must be set when referring to this screen.
At the top-level this is just the 'screen' id.
$ok = $screen->verify_csrf()
Verify that the CSRF token in the user agent's cookie matches the token passed in the form value.
If the CSRF check fails no action should be taken as this may be an attempt to forge a request.
@screen_opts = $screen->list_items( $list_id, %opts )
Returns a list of screens that appear in list $list_id ordered by their position.
Each screen opt is a hash ref of:
screen - screen plugin screen_id - screen id position - position (positive integer) action - the action, if this plugin is for an action list
Incoming opts:
filter => 1 or 0 (default 1) params => {}
$ok = $screen->has_action( $action_id )
Returns true if this screen has an action $action_id.
$url = $screen->action_icon_url( $action )
Returns the relative URL to the $action icon for this screen.
$frag = $screen->render_action_link()
Returns a link to this screen.
COPYRIGHT
Copyright 2000-2011 University of Southampton.
This file is part of EPrints http://www.eprints.org/.
EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints. If not, see http://www.gnu.org/licenses/.