BxDolStudioBadges.php 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 UnaStudio UNA Studio
  7. * @{
  8. */
  9. define('BX_DOL_STUDIO_BADGES_TYPE_GENERAL', 'badges');
  10. define('BX_DOL_STUDIO_BADGES_TYPE_DEFAULT', BX_DOL_STUDIO_BADGES_TYPE_GENERAL);
  11. class BxDolStudioBadges extends BxTemplStudioWidget
  12. {
  13. protected $sPage;
  14. function __construct($sPage = "")
  15. {
  16. parent::__construct('badges');
  17. $this->sPage = BX_DOL_STUDIO_BADGES_TYPE_DEFAULT;
  18. if(is_string($sPage) && !empty($sPage))
  19. $this->sPage = $sPage;
  20. }
  21. public function checkAction()
  22. {
  23. $sAction = bx_get('bdg_action');
  24. if($sAction === false)
  25. return false;
  26. $sAction = bx_process_input($sAction);
  27. $aResult = array('code' => 1, 'message' => _t('_adm_err_operation_failed'));
  28. switch($sAction) {
  29. }
  30. return $aResult;
  31. }
  32. }
  33. /** @} */