BxSnipcartFormSettings.php 833 B

1234567891011121314151617181920212223242526272829303132333435
  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 Snipcart Snipcart
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Edit settings form
  13. */
  14. class BxSnipcartFormSettings extends BxTemplFormView
  15. {
  16. protected $_sModule;
  17. protected $_oModule;
  18. public function __construct($aInfo, $oTemplate = false)
  19. {
  20. $this->_sModule = 'bx_snipcart';
  21. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  22. parent::__construct($aInfo, $oTemplate);
  23. if(($sF = 'api_key_test') && isset($this->aInputs[$sF]))
  24. $this->aInputs[$sF]['secret'] = 1;
  25. if(($sF = 'api_key_live') && isset($this->aInputs[$sF]))
  26. $this->aInputs[$sF]['secret'] = 1;
  27. }
  28. }
  29. /** @} */