grid.php 865 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. $oTemplate = null;
  17. if(bx_get(BX_DOL_STUDIO_TEMPLATE_CODE_KEY) !== false)
  18. $oTemplate = BxDolStudioTemplate::getInstance();
  19. $oGrid = BxDolGrid::getObjectInstance($sObject, $oTemplate);
  20. if (!$oGrid) {
  21. // no such grid object available
  22. exit;
  23. }
  24. if(method_exists($oGrid, 'init'))
  25. $oGrid->init();
  26. $sAction = 'performAction' . bx_gen_method_name(bx_process_input(bx_get('a')));
  27. if (method_exists($oGrid, $sAction)) {
  28. $oGrid->$sAction();
  29. }
  30. /** @} */