The columnRename function doesn't seem to be working for me. It's a very basic table. Is the ordering incorrect for pipe?
<?php
require_once '../koolreport/koolreport/core/autoload.php';
use \koolreport\KoolReport;
use \koolreport\processes\ColumnRename;
class Node19 extends KoolReport {
public function settings()
{
return array(
"dataSources"=>array(
"node19sql"=>array(
'host' => 'localhost',
'username' => 'xxx',
'password' => 'xxx',
'dbname' => 'xxx',
'charset' => 'utf8',
'class' => "\koolreport\datasources\MySQLDataSource"
),
)
);
}
protected function setup()
{
$this->src('node19sql')
->query("SELECT * FROM node_161")
->pipe($this->dataStore('vendor_table_results'))
->pipe(new ColumnRename(array(
"Column 0"=>"NODE ID",
"Column 1"=>"NODE NAME",
"Column 2"=>"Web Address",
"Column 3"=>"URL FORMATTED",
"Column 4"=>"ECODE",
"Column 5"=>"DECODE",
)));
}
}