You are here

public function ExportData::getKeys in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php \AKlump\LoftDataGrids\ExportData::getKeys()

Return an array of all keys for current of specified page

Return value

array

Overrides ExportDataInterface::getKeys

3 calls to ExportData::getKeys()
ExportData::hideKeys in vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php
Disables one or more keys on the current page from get().
ExportData::normalize in vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php
Normalize all rows so that they all contain the same number of columns, the column order will be taken from the order of the first column
ExportData::showKeys in vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php
Inverse of hideKeys.

File

vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/ExportData.php, line 93

Class

ExportData

Namespace

AKlump\LoftDataGrids

Code

public function getKeys($page_id = NULL) {
  if ($page_id === NULL) {
    $page_id = $this->current_page;
  }
  $keys = array();
  foreach ($this->data[$page_id] as $row) {
    $keys += $row;
  }
  $keys = array_keys($keys);
  $this
    ->setKeys($keys);
  return $keys;
}