PivotField
in package
Read-only representation of a single field within a pivot table.
A pivot field describes how one of the source cache fields is used in the pivot table: which axis it is placed on (row, column, page/filter or data), and, for value fields, which aggregation function is applied.
Tags
Table of Contents
Constants
- AXIS_COLUMN = 'axisCol'
- AXIS_NONE = ''
- AXIS_PAGE = 'axisPage'
- AXIS_ROW = 'axisRow'
- AXIS_VALUES = 'axisValues'
- SUBTOTAL_AVERAGE = 'average'
- SUBTOTAL_COUNT = 'count'
- SUBTOTAL_COUNT_NUMS = 'countNums'
- SUBTOTAL_MAX = 'max'
- SUBTOTAL_MIN = 'min'
- SUBTOTAL_PRODUCT = 'product'
- SUBTOTAL_STD_DEV = 'stdDev'
- SUBTOTAL_STD_DEV_P = 'stdDevp'
- SUBTOTAL_SUM = 'sum'
- SUBTOTAL_VAR = 'var'
- SUBTOTAL_VAR_P = 'varp'
Methods
- __construct() : mixed
- getAxis() : string
- getDataFieldCaption() : string|null
- getIndex() : int
- getName() : string
- getSubtotal() : string|null
- isDataField() : bool
- setAxis() : self
- setDataField() : self
- setDataFieldCaption() : self
- setName() : self
- setSubtotal() : self
Constants
AXIS_COLUMN
public
mixed
AXIS_COLUMN
= 'axisCol'
AXIS_NONE
public
mixed
AXIS_NONE
= ''
AXIS_PAGE
public
mixed
AXIS_PAGE
= 'axisPage'
AXIS_ROW
public
mixed
AXIS_ROW
= 'axisRow'
AXIS_VALUES
public
mixed
AXIS_VALUES
= 'axisValues'
SUBTOTAL_AVERAGE
public
mixed
SUBTOTAL_AVERAGE
= 'average'
SUBTOTAL_COUNT
public
mixed
SUBTOTAL_COUNT
= 'count'
SUBTOTAL_COUNT_NUMS
public
mixed
SUBTOTAL_COUNT_NUMS
= 'countNums'
SUBTOTAL_MAX
public
mixed
SUBTOTAL_MAX
= 'max'
SUBTOTAL_MIN
public
mixed
SUBTOTAL_MIN
= 'min'
SUBTOTAL_PRODUCT
public
mixed
SUBTOTAL_PRODUCT
= 'product'
SUBTOTAL_STD_DEV
public
mixed
SUBTOTAL_STD_DEV
= 'stdDev'
SUBTOTAL_STD_DEV_P
public
mixed
SUBTOTAL_STD_DEV_P
= 'stdDevp'
SUBTOTAL_SUM
public
mixed
SUBTOTAL_SUM
= 'sum'
SUBTOTAL_VAR
public
mixed
SUBTOTAL_VAR
= 'var'
SUBTOTAL_VAR_P
public
mixed
SUBTOTAL_VAR_P
= 'varp'
Methods
__construct()
public
__construct(int $index[, string $name = '' ]) : mixed
Parameters
- $index : int
- $name : string = ''
getAxis()
public
getAxis() : string
Return values
stringgetDataFieldCaption()
public
getDataFieldCaption() : string|null
Return values
string|nullgetIndex()
public
getIndex() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetSubtotal()
public
getSubtotal() : string|null
Return values
string|nullisDataField()
public
isDataField() : bool
Return values
boolsetAxis()
public
setAxis(string $axis) : self
Parameters
- $axis : string
Return values
selfsetDataField()
public
setDataField(bool $dataField) : self
Parameters
- $dataField : bool
Return values
selfsetDataFieldCaption()
public
setDataFieldCaption(string|null $dataFieldCaption) : self
Parameters
- $dataFieldCaption : 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