Documentation

PivotDataField
in package

One entry in a pivot table's <dataFields> list.

A data field is a source column plus the aggregation applied to it. The same source column may appear more than once with different aggregations (for example both the sum and the average of "Amount"), so a data field is its own object rather than a flag on PivotField: there is exactly one PivotField per source column, but there can be several data fields referring to it.

Tags
see
PivotTable
see
PivotField

Table of Contents

Methods

__construct()  : mixed
getCaption()  : string|null
getFieldIndex()  : int
getName()  : string
getSubtotal()  : string|null
setCaption()  : self
setName()  : self
setSubtotal()  : self

Methods

__construct()

public __construct(int $fieldIndex[, string $name = '' ][, string|null $subtotal = null ][, string|null $caption = null ]) : mixed
Parameters
$fieldIndex : int
$name : string = ''
$subtotal : string|null = null
$caption : string|null = null

getCaption()

public getCaption() : string|null
Return values
string|null

getSubtotal()

public getSubtotal() : string|null
Return values
string|null

setCaption()

public setCaption(string|null $caption) : self
Parameters
$caption : string|null
Return values
self

setName()

public setName(string $name) : self
Parameters
$name : string
Return values
self

setSubtotal()

public setSubtotal(string|null $subtotal) : self
Parameters
$subtotal : string|null
Return values
self

        
On this page

Search results