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