ColModifierSprintf
extends SortedColModifier
in package
Format something using printf syntax.
Table of Contents
Properties
- $format : mixed
Methods
- __construct() : mixed
- modify() : string
- Modify a column value This value will be html/csv/etc encoded afterwards.
Properties
$format
private
mixed
$format
Methods
__construct()
public
__construct(string $format) : mixed
Parameters
- $format : string
-
The printf format, see
sprintfdocs
modify()
Modify a column value This value will be html/csv/etc encoded afterwards.
public
modify(mixed $val, mixed $field_name, mixed $row) : string
Parameters
- $val : mixed
-
The incoming value
- $field_name : mixed
-
The name of the field being modified
- $row : mixed
-
The full row of data
Tags
Return values
string —The modified value