<?php /** * Manually Developed CI View - related_ai_gridfeed.php * * @package AIR\views * @version 2.7 * @uses * @see * @copyright 2015, BizyCorp Internal Systems Development * @license private, All rights reserved * @author Mohamed Roshan <roshan@ekwa.com> * */ if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Manually Developed CI View * * This is to output related AIR entries for a given AIR id and calling app function id as JSON * * @package AIR\views * @version 2.7 * @uses * @see * @copyright 2015, BizyCorp Internal Systems Development * @license private, All rights reserved * @author Mohamed Roshan <roshan@ekwa.com> * @created Jul 18, 2014 * @modified * @modification * */ class Related_ai_gridfeed{ // Just a dummy clas for phpdoc to catch the doc header. } /* $order = array("\r\n", "\n", "\r"); $column_list = array( 'integration_id', 'intergration_name', 'calling_app_id', 'calling_app_function_id', 'called_app_id', 'called_app_function_id'); $gridFeed = converDHTMLXGrid($data, true, 0,400,false,null,'',$column_list); $gridFeed = str_replace($order, '',$gridFeed); header("Content-type:text/xml"); echo $gridFeed; */ $data = $data['dataset']['result_set']; header('Content-Type: application/json'); echo json_encode($data); ?>