BxBaseModPaymentDetails.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 BasePayment Base classes for Payment like modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxBaseModPaymentDetails extends BxDol
  12. {
  13. protected $MODULE;
  14. protected $_oModule;
  15. function __construct()
  16. {
  17. parent::__construct();
  18. $this->_oModule = BxDolModule::getInstance($this->MODULE);
  19. }
  20. /**
  21. * @page service Service Calls
  22. * @section bx_base_payment Base Payment
  23. * @subsection bx_base_payment-integration Integration
  24. * @subsubsection bx_base_payment-get_details_url get_details_url
  25. *
  26. * @code bx_srv('bx_payment', 'get_details_url', [...], 'Details'); @endcode
  27. *
  28. * Get payment providers' configuration settings page URL.
  29. *
  30. * @return string with page URL.
  31. *
  32. * @see BxBaseModPaymentDetails::serviceGetDetailsUrl
  33. */
  34. /**
  35. * @ref bx_base_payment-get_details_url "get_details_url"
  36. */
  37. public function serviceGetDetailsUrl()
  38. {
  39. if(!$this->_oModule->isLogged())
  40. return '';
  41. return $this->_oModule->_oConfig->getUrl('URL_DETAILS');
  42. }
  43. }
  44. /** @} */