Skip to content

Commit

Permalink
*8582* initial framework for article XML export
Browse files Browse the repository at this point in the history
  • Loading branch information
jnugent committed Mar 7, 2014
1 parent 523ce5e commit caab885
Show file tree
Hide file tree
Showing 58 changed files with 1,275 additions and 6,470 deletions.
81 changes: 81 additions & 0 deletions controllers/grid/issues/ExportableIssuesListGridHandler.inc.php
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();
}
}

?>
Loading

0 comments on commit caab885

Please sign in to comment.