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
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|nullgetFieldIndex()
public
getFieldIndex() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetSubtotal()
public
getSubtotal() : string|null
Return values
string|nullsetCaption()
public
setCaption(string|null $caption) : self
Parameters
- $caption : string|null
Return values
selfsetName()
public
setName(string $name) : self
Parameters
- $name : string
Return values
selfsetSubtotal()
public
setSubtotal(string|null $subtotal) : self
Parameters
- $subtotal : string|null