BxBaseServiceGrid.php 734 B

123456789101112131415161718192021222324252627
  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 UnaBaseView UNA Base Representation Classes
  7. * @{
  8. */
  9. class BxBaseServiceGrid extends BxDol
  10. {
  11. public function servicePerfomActionApi($aParams = [])
  12. {
  13. $sObject = bx_process_input(bx_get('o'));
  14. $oTemplate = BxDolStudioTemplate::getInstance();
  15. $oGrid = BxDolGrid::getObjectInstance($sObject, $oTemplate);
  16. $sAction = 'performAction' . bx_gen_method_name(bx_process_input(bx_get('a')));
  17. if (method_exists($oGrid, $sAction)) {
  18. return $oGrid->$sAction();
  19. exit();
  20. }
  21. }
  22. }
  23. /** @} */