| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup PaidLevels Paid Levels
- * @ingroup UnaModules
- *
- * @{
- */
- class BxAclResponse extends BxDolAlertsResponse
- {
- protected $MODULE;
- protected $_oModule;
- public function __construct()
- {
- $this->MODULE = 'bx_acl';
- $this->_oModule = BxDolModule::getInstance($this->MODULE);
- parent::__construct();
- }
- /**
- * Overwtire the method of parent class.
- *
- * @param BxDolAlerts $oAlert an instance of alert.
- */
- public function response($oAlert)
- {
- $sMethod = '_process' . bx_gen_method_name($oAlert->sUnit . '_' . $oAlert->sAction);
- if(!method_exists($this, $sMethod))
- return;
- $this->$sMethod($oAlert);
- }
- protected function _processSystemPageOutputBlockAclLevel($oAlert)
- {
- $oAlert->aExtras['block_code'] .= $this->_oModule->serviceGetMembershipActions((int)$oAlert->aExtras['block_owner']);
- }
- protected function _processAclDeleted($oAlert)
- {
- $this->_oModule->_oDb->deletePrices(array('level_id' => $oAlert->iObject));
- }
- }
- /** @} */
|