BxBaseStudioSettingsServices.php 918 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup TridentStudio Trident Studio
  7. * @{
  8. */
  9. /**
  10. * System services related to Comments.
  11. */
  12. class BxBaseStudioSettingsServices extends BxDol
  13. {
  14. protected $oDb;
  15. public function __construct()
  16. {
  17. parent::__construct();
  18. $this->oDb = new BxDolStudioSettingsQuery();
  19. }
  20. public function serviceAlertResponseSysImagesCustomFileDeleted($oAlert)
  21. {
  22. if(!isset($oAlert->aExtras['ghost']['content_id']))
  23. return;
  24. $iOption = (int)$oAlert->aExtras['ghost']['content_id'];
  25. $aOption = array();
  26. $this->oDb->getOptions(array('type' => 'by_id', 'value' => $iOption), $aOption, false);
  27. if(!empty($aOption) && is_array($aOption))
  28. setParam($aOption['name'], 0);
  29. }
  30. }
  31. /** @} */