HomeHelpTrac

source: trunk/grid.php @ 15801

Revision 15801, 715 bytes checked in by Anton Lesnikov, 5 months ago (diff)

Minor improvements

Line 
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
10require_once('./inc/header.inc.php');
11require_once(BX_DIRECTORY_PATH_INC . "utils.inc.php");
12
13bx_import('BxDolLanguages');
14
15$sObject = bx_process_input(bx_get('o'));
16if (!$sObject)
17    exit;
18
19bx_import('BxDolGrid');
20$oGrid = BxDolGrid::getObjectInstance($sObject);
21if (!$oGrid) {
22    // no such grid object available   
23    exit;
24}
25
26$sAction = 'performAction' . str_replace(' ', '', ucwords(str_replace('_' , ' ', bx_process_input(bx_get('a')))));
27if (method_exists($oGrid, $sAction)) {
28    $oGrid->$sAction();
29}
30
31/** @} */
Note: See TracBrowser for help on using the repository browser.