BxPollsGridCommon.php 785 B

1234567891011121314151617181920212223242526272829
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Polls Polls
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxPollsGridCommon extends BxBaseModTextGridCommon
  12. {
  13. public function __construct ($aOptions, $oTemplate = false)
  14. {
  15. $this->MODULE = 'bx_polls';
  16. parent::__construct ($aOptions, $oTemplate);
  17. }
  18. protected function _getCellText($mixedValue, $sKey, $aField, $aRow)
  19. {
  20. $mixedValue = $this->_oModule->_oConfig->getTitle($aRow);
  21. $mixedValue = $this->_getEntryLink(strmaxtextlen($mixedValue, $aField['chars_limit']), $aRow);
  22. return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow);
  23. }
  24. }
  25. /** @} */