You are here

public function ViewsEFFieldsetData::buildFlat in Views Exposed Form Fieldset 7

Parameters

array $tree:

Return value

array

File

includes/ViewsEFFieldsetData.php, line 62
ViewsEFFieldsetData class file.

Class

ViewsEFFieldsetData
Class ViewsEFFieldsetData

Code

public function buildFlat() {
  $data = array();
  $recursive_iter_iter = new RecursiveIteratorIterator(new ArrayDataItemIterator($this
    ->buildTreeData()), RecursiveIteratorIterator::SELF_FIRST);
  foreach ($recursive_iter_iter as $item) {
    $item['item']['depth'] = $recursive_iter_iter
      ->getDepth();
    $data[] = $item;
  }
  return $data;
}