/lib/pkp/classes/controllers/listbuilder/ListbuilderGridRow.inc.php
PHP | 50 lines | 17 code | 7 blank | 26 comment | 1 complexity | f56b8db52bc036a769c2fb9efcc814c6 MD5 | raw file
Possible License(s): GPL-2.0
- <?php
- /**
- * @file classes/controllers/listbuilder/ListbuilderGridRow.inc.php
- *
- * Copyright (c) 2000-2012 John Willinsky
- * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
- *
- * @class ListbuilderGridRow
- * @ingroup controllers_listbuilder
- *
- * @brief Handle list builder row requests.
- */
- import('controllers.grid.GridRow');
- class ListbuilderGridRow extends GridRow {
- /**
- * Constructor
- */
- function ListbuilderGridRow() {
- parent::GridRow();
- }
- /**
- * Get the listbuilder template
- * @return string
- */
- function getTemplate() {
- if (is_null($this->_template)) {
- $this->setTemplate('controllers/listbuilder/listbuilderGridRow.tpl');
- }
- return $this->_template;
- }
-
- //
- // Overridden template methods
- //
- /**
- * @see GridRow::initialize()
- * @param PKPRequest $request
- */
- function initialize(&$request) {
- parent::initialize($request);
- // add list builder row template
- $this->setTemplate($this->getTemplate());
- }
- }