Transpose

Introduction #

Transpose process help to transpose table, changing row to column and column to row. The new columns will be name as "c0", "c1", "c2" to "cn". The "c0" is a specical column which contains the name of column before being transposed.

Example #

<?php
use \koolreport\processes\Transpose;
class MyReport extends \koolreport\KoolReport
{
    public function setup()
    {
        ...
        ->pipe(new Transpose())
        ...
    }
}