BxDolPaymentsQuery.php 635 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. /**
  10. * @see BxDolPayments
  11. */
  12. class BxDolPaymentsQuery extends BxDolDb
  13. {
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function getObjects()
  19. {
  20. $sQuery = $this->prepare("SELECT * FROM `sys_objects_payments` WHERE 1");
  21. $aObjects = $this->getAll($sQuery);
  22. if(empty($aObjects) || !is_array($aObjects))
  23. return array();
  24. return $aObjects;
  25. }
  26. }
  27. /** @} */