grid.php 707 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  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 TridentCore Trident Core
  7. * @{
  8. */
  9. require_once('./inc/header.inc.php');
  10. require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
  11. require_once(BX_DIRECTORY_PATH_INC . "utils.inc.php");
  12. bx_import('BxDolLanguages');
  13. $sObject = bx_process_input(bx_get('o'));
  14. if (!$sObject)
  15. exit;
  16. $oGrid = BxDolGrid::getObjectInstance($sObject);
  17. if (!$oGrid) {
  18. // no such grid object available
  19. exit;
  20. }
  21. $sAction = 'performAction' . bx_gen_method_name(bx_process_input(bx_get('a')));
  22. if (method_exists($oGrid, $sAction)) {
  23. $oGrid->$sAction();
  24. }
  25. /** @} */