BxShopifyPageEntry.php 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 Shopify Shopify
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Entry create/edit pages
  13. */
  14. class BxShopifyPageEntry extends BxBaseModTextPageEntry
  15. {
  16. public function __construct($aObject, $oTemplate = false)
  17. {
  18. $this->MODULE = 'bx_shopify';
  19. parent::__construct($aObject, $oTemplate);
  20. }
  21. public function getCode()
  22. {
  23. if(!$this->_aContentInfo) {
  24. $this->_oTemplate->displayPageNotFound();
  25. exit;
  26. }
  27. $iProfileId = $this->_aContentInfo[$this->_oModule->_oConfig->CNF['FIELD_AUTHOR']];
  28. return $this->_oModule->serviceInclude($iProfileId) . parent::getCode();
  29. }
  30. protected function _setSubmenu($aParams)
  31. {
  32. parent::_setSubmenu(array_merge($aParams, array(
  33. 'title' => '',
  34. 'icon' => ''
  35. )));
  36. }
  37. }
  38. /** @} */