Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct () | |
addGalley ($args, $request) | |
authorize ($request, &$args, $roleAssignments) | |
canEdit () | |
clearPubId ($args, $request) | |
deleteGalley ($args, $request) | |
editGalley ($args, $request) | |
editGalleyTab ($args, $request) | |
fetchRow ($args, $request) | |
getDataElementSequence ($row) | |
getGalley () | |
getJSHandler () | |
getPublication () | |
getRequestArgs () | |
getRowInstance () | |
getSubmission () | |
identifiers ($args, $request) | |
initFeatures ($request, $args) | |
initialize ($request, $args=null) | |
loadData ($request, $filter=null) | |
setDataElementSequence ($request, $rowId, $gridDataElement, $newSequence) | |
updateGalley ($args, $request) | |
updateIdentifiers ($args, $request) | |
![]() | |
__construct ($dataProvider=null) | |
addAction ($action, $position=GRID_ACTION_POSITION_ABOVE) | |
addColumn ($column) | |
fetchCell (&$args, $request) | |
fetchGrid ($args, $request) | |
fetchRows ($args, $request) | |
getActions ($position=GRID_ACTION_POSITION_ABOVE) | |
getColumn ($columnId) | |
& | getColumns () |
& | getColumnsByFlag ($flag) |
getColumnsCount ($flag=null) | |
getDataProvider () | |
getEmptyRowText () | |
getFeatures () | |
getFootNote () | |
& | getGridDataElements ($request) |
getGridRangeInfo ($request, $rangeName, $contextData=null) | |
getIsSubcomponent () | |
getItemIterator () | |
getPublishChangeEvents () | |
getRequestArg ($key) | |
getRequestedRow ($request, $args) | |
getSelectName () | |
getTemplate () | |
getTitle () | |
getUrls () | |
hasColumn ($columnId) | |
hasGridDataElements ($request) | |
isDataElementSelected ($gridDataElement) | |
renderRow ($request, $row) | |
saveSequence ($args, $request) | |
setEmptyRowText ($emptyRowText) | |
setFootNote ($footNote) | |
setGridDataElements ($data) | |
setTemplate ($template) | |
setTitle ($title) | |
setUrls ($request, $extraUrls=array()) | |
![]() | |
addPolicy ($authorizationPolicy, $addToTop=false) | |
addRoleAssignment ($roleIds, $operations) | |
getApiToken () | |
& | getAuthorizedContext () |
& | getAuthorizedContextObject ($assocType) |
& | getDispatcher () |
getFirstUserContext ($user, $contexts) | |
getId () | |
getLastAuthorizationMessage () | |
getRoleAssignment ($roleId) | |
getRoleAssignments () | |
getSiteRedirectContext ($request) | |
getTargetContext ($request, &$contextsCount=null) | |
index ($args, $request) | |
initialize ($request) | |
markRoleAssignmentsChecked () | |
requireSSL () | |
setApiToken ($apiToken) | |
setDispatcher ($dispatcher) | |
setEnforceRestrictedSite ($enforceRestrictedSite) | |
setId ($id) | |
setupTemplate ($request) | |
validate ($requiredContexts=null, $request=null) | |
Data Fields | |
$_request | |
![]() | |
$_actions = array(GRID_ACTION_POSITION_DEFAULT => array()) | |
$_columns = array() | |
$_constants = [] | |
$_data | |
$_dataProvider | |
$_emptyRowText = 'grid.noItems' | |
$_features | |
$_footNote = '' | |
$_itemIterator | |
$_template | |
$_title = '' | |
$_urls | |
![]() | |
$_authorizationDecisionManager | |
$_checks = array() | |
$_dispatcher | |
$_enforceRestrictedSite = true | |
$_id | |
$_isBackendPage = false | |
$_roleAssignments = array() | |
$_roleAssignmentsChecked = false | |
Additional Inherited Members | |
![]() | |
static | getPageParamName ($rangeName) |
static | getRangeInfo ($request, $rangeName, $contextData=null) |
static | hashPageContext ($request, $contextData=array()) |
![]() | |
callFeaturesHook ($hookName, $args) | |
doSpecificFetchGridActions ($args, $request, $templateMgr) | |
& | getDataElementFromRequest ($request, &$elementId) |
getFilterForm () | |
getFilterSelectionData ($request) | |
getRowDataElement ($request, &$rowId) | |
getRowsSequence ($request) | |
isFilterFormCollapsible () | |
noAutocompleteResults () | |
renderFilter ($request, $filterData=array()) | |
renderGridBodyPartsInternally ($request) | |
renderRowInternally ($request, $row) | |
renderRowsInternally ($request, &$elements) | |
setFirstDataColumn () | |
![]() | |
$_apiToken = null | |
Handle article galley grid requests.
Definition at line 22 of file ArticleGalleyGridHandler.inc.php.
ArticleGalleyGridHandler::__construct | ( | ) |
Constructor
Reimplemented from PKPHandler.
Definition at line 33 of file ArticleGalleyGridHandler.inc.php.
References PKPHandler\addRoleAssignment().
ArticleGalleyGridHandler::addGalley | ( | $args, | |
$request | |||
) |
Add a galley
$args | array |
$request | PKPRequest |
Definition at line 273 of file ArticleGalleyGridHandler.inc.php.
References getPublication(), and getSubmission().
ArticleGalleyGridHandler::authorize | ( | $request, | |
& | $args, | ||
$roleAssignments | |||
) |
Authorize this request.
Routers will call this method automatically thereby enforcing authorization. This method will be called before the validate() method and before passing control on to the handler operation.
NB: This method will be called once for every request only.
$request | Request |
$args | array request arguments |
$roleAssignments | array the operation role assignment, see getRoleAssignment() for more details. |
Reimplemented from GridHandler.
Definition at line 85 of file ArticleGalleyGridHandler.inc.php.
References PKPHandler\addPolicy().
ArticleGalleyGridHandler::canEdit | ( | ) |
Can the current user edit the galleys in this grid?
The user must have an allowed role in one of the assigned stages. If the user is not assigned, they can edit if they are an editor or admin.
Definition at line 452 of file ArticleGalleyGridHandler.inc.php.
References PKPServices\get(), PKPHandler\getAuthorizedContextObject(), and getPublication().
Referenced by getRowInstance(), initFeatures(), and initialize().
ArticleGalleyGridHandler::clearPubId | ( | $args, | |
$request | |||
) |
Clear galley pub id
$args | array |
$request | PKPRequest |
Definition at line 255 of file ArticleGalleyGridHandler.inc.php.
References Application\getRepresentationDAO(), and getSubmission().
ArticleGalleyGridHandler::deleteGalley | ( | $args, | |
$request | |||
) |
Delete a galley.
$args | array |
$request | PKPRequest |
Definition at line 290 of file ArticleGalleyGridHandler.inc.php.
References PKPServices\get(), DAORegistry\getDAO(), DAO\getDataChangedEvent(), getGalley(), PKPHandler\getId(), getSubmission(), and Application\getSubmissionSearchIndex().
ArticleGalleyGridHandler::editGalley | ( | $args, | |
$request | |||
) |
Edit a galley metadata modal
$args | array |
$request | PKPRequest |
Definition at line 350 of file ArticleGalleyGridHandler.inc.php.
References getGalley(), PKPHandler\getId(), PKPTemplateManager\getManager(), getPublication(), getSubmission(), and PluginRegistry\loadCategory().
ArticleGalleyGridHandler::editGalleyTab | ( | $args, | |
$request | |||
) |
Edit a galley
$args | array |
$request | PKPRequest |
Definition at line 381 of file ArticleGalleyGridHandler.inc.php.
References getGalley(), getPublication(), and getSubmission().
ArticleGalleyGridHandler::fetchRow | ( | $args, | |
$request | |||
) |
Render a row and send it to the client. If the row no longer exists then inform the client.
$args | array |
$request | PKPRequest |
Reimplemented from GridHandler.
Definition at line 431 of file ArticleGalleyGridHandler.inc.php.
References GridHandler\getRequestedRow().
ArticleGalleyGridHandler::getDataElementSequence | ( | $row | ) |
Override to return the data element sequence value.
$gridDataElement | mixed |
Reimplemented from GridHandler.
Definition at line 161 of file ArticleGalleyGridHandler.inc.php.
ArticleGalleyGridHandler::getGalley | ( | ) |
Get the authorized galley.
Definition at line 67 of file ArticleGalleyGridHandler.inc.php.
References PKPHandler\getAuthorizedContextObject().
Referenced by deleteGalley(), editGalley(), editGalleyTab(), and updateGalley().
ArticleGalleyGridHandler::getJSHandler | ( | ) |
Reimplemented from GridHandler.
Definition at line 78 of file ArticleGalleyGridHandler.inc.php.
ArticleGalleyGridHandler::getPublication | ( | ) |
Get the authorized publication.
Definition at line 59 of file ArticleGalleyGridHandler.inc.php.
References PKPHandler\getAuthorizedContextObject().
Referenced by addGalley(), canEdit(), editGalley(), editGalleyTab(), getRequestArgs(), getRowInstance(), initialize(), loadData(), and updateGalley().
ArticleGalleyGridHandler::getRequestArgs | ( | ) |
Get the arguments that will identify the data in the grid. Overridden by child grids.
Reimplemented from GridHandler.
Definition at line 196 of file ArticleGalleyGridHandler.inc.php.
References PKPHandler\getId(), getPublication(), and getSubmission().
Referenced by updateIdentifiers().
ArticleGalleyGridHandler::getRowInstance | ( | ) |
Get a new instance of a grid row. May be overridden by subclasses if they want to provide a custom row definition.
Reimplemented from GridHandler.
Definition at line 182 of file ArticleGalleyGridHandler.inc.php.
References canEdit(), getPublication(), and getSubmission().
ArticleGalleyGridHandler::getSubmission | ( | ) |
Get the authorized submission.
Definition at line 51 of file ArticleGalleyGridHandler.inc.php.
References PKPHandler\getAuthorizedContextObject().
Referenced by addGalley(), clearPubId(), deleteGalley(), editGalley(), editGalleyTab(), getRequestArgs(), getRowInstance(), initialize(), and updateGalley().
ArticleGalleyGridHandler::identifiers | ( | $args, | |
$request | |||
) |
Edit article galley pub ids
$args | array |
$request | PKPRequest |
Definition at line 220 of file ArticleGalleyGridHandler.inc.php.
References Application\getRepresentationDAO().
ArticleGalleyGridHandler::initFeatures | ( | $request, | |
$args | |||
) |
Override to init grid features. This method is called by GridHandler::initialize() method that use the returned array with the initialized features to add them to grid.
$request | PKPRequest |
$args | array |
Reimplemented from GridHandler.
Definition at line 149 of file ArticleGalleyGridHandler.inc.php.
References canEdit().
ArticleGalleyGridHandler::initialize | ( | $request, | |
$args = null |
|||
) |
$request | PKPRequest |
$args | array optional |
Reimplemented from GridHandler.
Definition at line 105 of file ArticleGalleyGridHandler.inc.php.
References GridHandler\addAction(), GridHandler\addColumn(), canEdit(), getPublication(), getSubmission(), AppLocale\requireComponents(), and GridHandler\setTitle().
ArticleGalleyGridHandler::loadData | ( | $request, | |
$filter = null |
|||
) |
Implement this method to load data into the grid.
$request | PKPRequest |
$filter | array An associative array with filter data as returned by getFilterSelectionData(). If no filter has been selected by the user then the array will be empty. |
Reimplemented from GridHandler.
Definition at line 206 of file ArticleGalleyGridHandler.inc.php.
References DAORegistry\getDAO(), PKPHandler\getId(), and getPublication().
ArticleGalleyGridHandler::setDataElementSequence | ( | $request, | |
$rowId, | |||
$gridDataElement, | |||
$newSequence | |||
) |
Override to set the data element new sequence.
$request | PKPRequest |
$rowId | int |
$gridDataElement | mixed |
$newSequence | int |
Reimplemented from GridHandler.
Definition at line 168 of file ArticleGalleyGridHandler.inc.php.
References DAORegistry\getDAO().
ArticleGalleyGridHandler::updateGalley | ( | $args, | |
$request | |||
) |
Save a galley
$args | array |
$request | PKPRequest |
Definition at line 400 of file ArticleGalleyGridHandler.inc.php.
References DAO\getDataChangedEvent(), getGalley(), PKPHandler\getId(), getPublication(), and getSubmission().
ArticleGalleyGridHandler::updateIdentifiers | ( | $args, | |
$request | |||
) |
Update article galley pub ids
$args | array |
$request | PKPRequest |
Definition at line 235 of file ArticleGalleyGridHandler.inc.php.
References DAO\getDataChangedEvent(), Application\getRepresentationDAO(), and getRequestArgs().
PKPRequest ArticleGalleyGridHandler::$_request |
Definition at line 28 of file ArticleGalleyGridHandler.inc.php.