PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/pkp/classes/controllers/grid/GridCategoryRow.inc.php

https://github.com/lib-uoguelph-ca/ocs
PHP | 51 lines | 17 code | 6 blank | 28 comment | 1 complexity | 6013001d5fda6e2419fdd3d3e3e5e3be MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. * @file classes/controllers/grid/GridCategoryRow.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 GridCategoryRow
  9. * @ingroup controllers_grid
  10. *
  11. * @brief Class defining basic operations for handling the category row in a grid
  12. *
  13. */
  14. import('controllers.grid.GridRow');
  15. class GridCategoryRow extends GridRow {
  16. /**
  17. * Constructor.
  18. */
  19. function GridCategoryRow() {
  20. parent::GridRow();
  21. }
  22. //
  23. // Getters/Setters
  24. //
  25. /**
  26. * Get the row template - override base
  27. * implementation to provide a sensible default.
  28. * @return string
  29. */
  30. function getTemplate() {
  31. if (is_null($this->_template)) {
  32. $this->setTemplate('controllers/grid/gridCategoryRow.tpl');
  33. }
  34. return $this->_template;
  35. }
  36. /**
  37. * Category rows only have one cell and one label. This is it.
  38. * @param string $categoryName
  39. * return string
  40. */
  41. function getCategoryLabel() {
  42. return '';
  43. }
  44. }
  45. ?>