BxVideosFormList.php 851 B

12345678910111213141516171819202122232425262728
  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 Videos Videos
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Create/Edit entry form
  13. */
  14. class BxVideosFormList extends BxTemplFormView
  15. {
  16. public function __construct($aInfo, $oTemplate = false)
  17. {
  18. $this->MODULE = 'bx_videos';
  19. parent::__construct($aInfo, $oTemplate);
  20. $this->_oModule = BxDolModule::getInstance($this->MODULE);
  21. $CNF = &$this->_oModule->_oConfig->CNF;
  22. if (isset($this->aInputs[$CNF['FIELD_ALLOW_LIST_VIEW_TO']]))
  23. $this->aInputs[$CNF['FIELD_ALLOW_LIST_VIEW_TO']] = array_merge($this->aInputs[$CNF['FIELD_ALLOW_LIST_VIEW_TO']], BxDolPrivacy::getGroupChooser($CNF['OBJECT_PRIVACY_VIEW_LIST']));
  24. }
  25. }
  26. /** @} */