BxDolLogsQuery.php 711 B

1234567891011121314151617181920212223242526272829303132
  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 UnaCore UNA Core
  7. * @{
  8. */
  9. class BxDolLogsQuery extends BxDolDb
  10. {
  11. protected $_aObject;
  12. public function __construct($aObject = [])
  13. {
  14. parent::__construct();
  15. $this->_aObject = $aObject;
  16. }
  17. static public function getLogsObject($sObject)
  18. {
  19. $oDb = BxDolDb::getInstance();
  20. $a = $oDb->fromCache('sys_objects_logs', 'getAllWithKey', "SELECT * FROM `sys_objects_logs`", 'object');
  21. if ($a && isset($a[$sObject]))
  22. return $a[$sObject];
  23. return false;
  24. }
  25. }
  26. /** @} */