BxPaymentFormCommissions.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 Payment Payment
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxPaymentFormCommissions extends BxTemplStudioFormView
  12. {
  13. protected $_sModule;
  14. protected $_oModule;
  15. function __construct($aInfo, $oTemplate = false)
  16. {
  17. parent::__construct($aInfo, $oTemplate);
  18. $this->_sModule = 'bx_payment';
  19. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  20. if(isset($this->aInputs['acl_id'])) {
  21. $this->aInputs['acl_id']['values'] = array(
  22. array('key' => '0', 'value' => _t('_Select_one'))
  23. );
  24. $aLevels = BxDolAcl::getInstance()->getMemberships(false, true, false, true);
  25. foreach($aLevels as $iLevelId => $sLevelTitle)
  26. $this->aInputs['acl_id']['values'][] = array('key' => $iLevelId, 'value' => _t($sLevelTitle));
  27. }
  28. }
  29. }
  30. /** @} */