BxDolStudioDashboardQuery.php 651 B

1234567891011121314151617181920212223242526
  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 DolphinStudio Dolphin Studio
  7. * @{
  8. */
  9. bx_import('BxDolStudioPageQuery');
  10. class BxDolStudioDashboardQuery extends BxDolStudioPageQuery
  11. {
  12. function __construct()
  13. {
  14. parent::__construct();
  15. }
  16. function getModuleStorageSize($sModule)
  17. {
  18. $sSql = "SELECT SUM(`current_size`) AS `size` FROM `sys_objects_storage` WHERE `object` LIKE '" . $this->escape($sModule) . "%' LIMIT 1";
  19. return $this->getOne($sSql);
  20. }
  21. }
  22. /** @} */