-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*8582* initial framework for article XML export
- Loading branch information
Showing
58 changed files
with
1,275 additions
and
6,470 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
controllers/grid/issues/ExportableIssuesListGridHandler.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
|
||
/** | ||
* @file controllers/grid/issues/IssueGridHandler.inc.php | ||
* | ||
* Copyright (c) 2014 Simon Fraser University Library | ||
* Copyright (c) 2000-2014 John Willinsky | ||
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. | ||
* | ||
* @class ExportableIssuesListGridHandler | ||
* @ingroup controllers_grid_issues | ||
* | ||
* @brief Handle exportable issues grid requests. | ||
*/ | ||
|
||
import('classes.controllers.grid.issues.IssueGridHandler'); | ||
|
||
class ExportableIssuesListGridHandler extends IssueGridHandler { | ||
/** | ||
* Constructor | ||
*/ | ||
function ExportableIssuesListGridHandler() { | ||
parent::IssueGridHandler(); | ||
} | ||
|
||
|
||
// | ||
// Implement template methods from PKPHandler | ||
// | ||
/** | ||
* @copydoc PKPHandler::initialize() | ||
*/ | ||
function initialize($request, $args) { | ||
parent::initialize($request, $args); | ||
} | ||
|
||
|
||
// | ||
// Implemented methods from GridHandler. | ||
// | ||
/** | ||
* @copydoc GridHandler::isDataElementSelected() | ||
*/ | ||
function isDataElementSelected($gridDataElement) { | ||
return false; // Nothing is selected by default | ||
} | ||
|
||
/** | ||
* @copydoc GridHandler::getSelectName() | ||
*/ | ||
function getSelectName() { | ||
return 'selectedIssues'; | ||
} | ||
|
||
/** | ||
* @copydoc GridHandler::loadData() | ||
*/ | ||
function loadData($request, $filter) { | ||
$journal = $request->getJournal(); | ||
$issueDao = DAORegistry::getDAO('IssueDAO'); | ||
return $issueDao->getIssues($journal->getId(), $this->getGridRangeInfo($request, $this->getId())); | ||
} | ||
|
||
/** | ||
* @copydoc GridHandler::initFeatures() | ||
*/ | ||
function initFeatures($request, $args) { | ||
import('lib.pkp.classes.controllers.grid.feature.selectableItems.SelectableItemsFeature'); | ||
return array(new SelectableItemsFeature()); | ||
} | ||
|
||
/** | ||
* Get the row handler - override the parent row handler. We do not need grid row actions. | ||
* @return GridRow | ||
*/ | ||
function getRowInstance() { | ||
return new GridRow(); | ||
} | ||
} | ||
|
||
?> |
Oops, something went wrong.