grid.php 726 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  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. 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. if(method_exists($oGrid, 'init'))
  22. $oGrid->init();
  23. $sAction = 'performAction' . bx_gen_method_name(bx_process_input(bx_get('a')));
  24. if (method_exists($oGrid, $sAction)) {
  25. $oGrid->$sAction();
  26. }
  27. /** @} */