BxTasksTemplate.php 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. * @defgroup Tasks Tasks
  6. * @ingroup UnaModules
  7. *
  8. * @{
  9. */
  10. /*
  11. * Module representation.
  12. */
  13. class BxTasksTemplate extends BxBaseModTextTemplate
  14. {
  15. function __construct(&$oConfig, &$oDb)
  16. {
  17. $this->MODULE = 'bx_tasks';
  18. parent::__construct($oConfig, $oDb);
  19. }
  20. /**
  21. * Use Gallery image for both because currently there is no Unit types with small thumbnails.
  22. */
  23. protected function getUnitThumbAndGallery ($aData)
  24. {
  25. list($sPhotoThumb, $sPhotoGallery) = parent::getUnitThumbAndGallery($aData);
  26. return array($sPhotoGallery, $sPhotoGallery);
  27. }
  28. public function entryText ($aData, $sTemplateName = 'entry-text.html')
  29. {
  30. $aVars = $this->getTmplVarsText($aData);
  31. return $this->parseHtmlByName($sTemplateName, $aVars);
  32. }
  33. }
  34. /** @} */