} $options = json_decode(init('value', '{}'), true); if (init('utid') != '') { $options['utid'] = init('utid'); } ajax::success($cmd->execCmd($options, init('cache', 1))); } if (init('action') == 'getByObjectNameEqNameCmdName') { $cmd = cmd::byObjectNameEqLogicNameCmdName(init('object_name'), init('eqLogic_name'), init('cmd_name')); if (!is_object($cmd)) { throw new Exception(__('Cmd inconnu : ', __FILE__) . init('object_name') . '/' . init('eqLogic_name') . '/' . init('cmd_name')); } ajax::success($cmd->getId()); } if (init('action') == 'getByObjectNameCmdName') { $cmd = cmd::byObjectNameCmdName(init('object_name'), init('cmd_name')); if (!is_object($cmd)) { throw new Exception(__('Cmd inconnu : ', __FILE__) . init('object_name') . '/' . init('cmd_name'), 9999); } ajax::success(utils::o2a($cmd)); } if (init('action') == 'byId') { $cmd = cmd::byId(init('id')); if (!is_object($cmd)) { throw new Exception(__('Cmd inconnu : ', __FILE__) . init('id'), 9999); } ajax::success(utils::o2a($cmd)); } if (init('action') == 'byHumanName') { $cmd_id = cmd::humanReadableToCmd(init('humanName')); $cmd = cmd::byId(str_replace('#', '', $cmd_id));