Documentation

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

Methods

__construct()

public __construct(string $format) : mixed
Parameters
$format : string

The printf format, see sprintf docs

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
inheritdoc
Return values
string —

The modified value

On this page

Search results