ColumnMeta Process
Datetime meta
name | joined_date |
John |
2018-08-01 01:34:12 |
Marry |
2018-09-12 10:22:44 |
Peter |
2018-09-03 13:44:14 |
Donald |
2018-09-26 17:27:54 |
->pipe(new ColumnMeta(array(
"joined_date" => array(
"type" => "datetime",
"format" => "Y-m-d H:i:s",
"displayFormat" => "d-m-Y"
)
)))
name | joined_date |
John |
01-08-2018 |
Marry |
12-09-2018 |
Peter |
03-09-2018 |
Donald |
26-09-2018 |
The example demonstrates usage of `ColumnMeta` process to change data meta information.
__String meta__
```
->pipe(new ColumnMeta(array(
"name" => array(
"label" => "NAME",
"type" => "string",
"prefix" => "prefix_",
"suffix" => "_suffix",
)
)))
```
__Number meta__
```
->pipe(new ColumnMeta(array(
"income" => array(
"type" => "number",
"decimals" => 2,
"decimalPoint" => ".",
"thousandSeparator" => ",",
)
)))
```
__Datetime meta__
```
->pipe(new ColumnMeta(array(
"joined_date" => array(
"type" => "datetime",
"format" => "Y-m-d H:i:s",
"displayFormat" => "d-m-Y"
)
)))
```