<?php
/**
 * Manually Developed CI View - 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 the grid feed for AIR listing 
 *
 * @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 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','called_app_id');

if($format=='XML' || $format=='xml') {
	
	if ($searchOn == 'true') {
		$gridFeed = converDHTMLXGrid($data, true, 0,400,false,null,'',$column_list);
	} else {
		$gridFeed = converDHTMLXGrid($data, true, 0,400,true,null,'',$column_list);
	}
}

$gridFeed = str_replace($order, '',$gridFeed);
header("Content-type:text/xml");
echo $gridFeed;
?>