| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup Credits Credits
- * @ingroup UnaModules
- *
- * @{
- */
- class BxCreditsMenuManage extends BxTemplMenu
- {
- protected $_sModule;
- protected $_oModule;
- public function __construct($aObject, $oTemplate = false)
- {
- parent::__construct($aObject, $oTemplate);
- $this->_sModule = 'bx_credits';
- $this->_oModule = BxDolModule::getInstance($this->_sModule);
- }
- protected function _isVisible ($a)
- {
- if(!parent::_isVisible($a))
- return false;
- $bResult = true;
- switch ($a['name']) {
- case 'credits-withdrawals-common':
- case 'credits-withdrawals-administration':
- $bResult = $this->_oModule->_oConfig->isWithdraw();
- break;
- }
- return $bResult;
- }
- }
- /** @} */
|