PageRenderTime 41ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/pkp/classes/controllers/listbuilder/ListbuilderGridRow.inc.php

https://github.com/lib-uoguelph-ca/ocs
PHP | 50 lines | 17 code | 7 blank | 26 comment | 1 complexity | f56b8db52bc036a769c2fb9efcc814c6 MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. * @file classes/controllers/listbuilder/ListbuilderGridRow.inc.php
  4. *
  5. * Copyright (c) 2000-2012 John Willinsky
  6. * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
  7. *
  8. * @class ListbuilderGridRow
  9. * @ingroup controllers_listbuilder
  10. *
  11. * @brief Handle list builder row requests.
  12. */
  13. import('controllers.grid.GridRow');
  14. class ListbuilderGridRow extends GridRow {
  15. /**
  16. * Constructor
  17. */
  18. function ListbuilderGridRow() {
  19. parent::GridRow();
  20. }
  21. /**
  22. * Get the listbuilder template
  23. * @return string
  24. */
  25. function getTemplate() {
  26. if (is_null($this->_template)) {
  27. $this->setTemplate('controllers/listbuilder/listbuilderGridRow.tpl');
  28. }
  29. return $this->_template;
  30. }
  31. //
  32. // Overridden template methods
  33. //
  34. /**
  35. * @see GridRow::initialize()
  36. * @param PKPRequest $request
  37. */
  38. function initialize(&$request) {
  39. parent::initialize($request);
  40. // add list builder row template
  41. $this->setTemplate($this->getTemplate());
  42. }
  43. }