Function setKeys
Set the keys in use by the tables - these ensure entries MUST exist if the data isn't sent.
sets the current set of "keys" expected in each data array passed to addData. It also sets the way we are adding data to the data table. method specifies whether the data passed to addData represents a new column, or a new row. keys is an array whose keys are the keys for data being passed to addData(). if reverse is set to true, then the values of the variable "keys" are used as opposed to the keys(!
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Reports.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Reports.php
string |
$method = 'rows' |
The method. Can be 'rows' or 'columns' |
array |
$keys = array() |
The keys |
boolean |
$reverse = false |
Whether we want to use the values as the keys |