BxBaseStudioSettingsServices.php 932 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 UnaView UNA Studio Representation classes
  7. * @ingroup UnaStudio
  8. * @{
  9. */
  10. /**
  11. * System services related to Comments.
  12. */
  13. class BxBaseStudioSettingsServices extends BxDol
  14. {
  15. protected $oDb;
  16. public function __construct()
  17. {
  18. parent::__construct();
  19. $this->oDb = new BxDolStudioSettingsQuery();
  20. }
  21. public function serviceAlertResponseSysImagesCustomFileDeleted($oAlert)
  22. {
  23. if(!isset($oAlert->aExtras['ghost']['content_id']))
  24. return;
  25. $iOption = (int)$oAlert->aExtras['ghost']['content_id'];
  26. $aOption = array();
  27. $this->oDb->getOptions(array('type' => 'by_id', 'value' => $iOption), $aOption, false);
  28. if(!empty($aOption) && is_array($aOption))
  29. setParam($aOption['name'], 0);
  30. }
  31. }
  32. /** @} */