Skip to content

Processors

ubermanu edited this page Apr 8, 2016 · 3 revisions

processors are integrated functions that can change values of your data

Set

Set the value of this column to a new one

- set: Hello
Copy

Copy a column value

- copy: text
Upper, Lower and Camel Case

Change content case

- upper_case
- lower_case
- camel_case
Replace

Replace a string by another

- replace: ['é', 'e']
HTML Entities

Decode HTML entities like  

- html_entity_decode
Strip Tags

Remove HTML tags like <br>

- strip_tags
Split and Join

Split a string into an array or join an array to a string
Be careful, if your data contains arrays when passed to the Writer, it may cause problems!

- split: '-'
- join: '/'
Math

A set of math functions

- add: 10
- sub: 5.2
- mult: 0.2
- div: 20
- mod: 50
Array Elements

Get array element

- first
- last
Clone this wiki locally