concrete/src/Express/Export/EntryList/CsvWriter.php
private function projectList(EntryList $list)
    {
        $headers = array_keys(iterator_to_array($this->getHeaders($list->getEntity())));
        $statement = $list->deliverQueryObject()->execute();

        foreach ($statement as $result) {
            if ($entry = $list->getResult($result)) {
                yield $this->orderedEntry(iterator_to_array($this->projectEntry($entry)), $headers);
            }
        }
    }
private function projectList(EntryList $list)
    {
        $headers = array_keys(iterator_to_array($this->getHeaders($list->getEntity())));
        $statement = $list->deliverQueryObject()->execute();

        foreach ($statement as $result) {
            if ($entry = $list->getResult($result)) {
                yield $this->orderedEntry(iterator_to_array($this->projectEntry($entry)), $headers);
            }
        }
    }
private function projectList ( EntryList $ list ) { $ headers = array_keys ( iterator_to_array ( $ this -> getHeaders ( $ list -> getEntity ( ) ) ) ) ; $ statement = $ list -> deliverQueryObject ( ) -> execute ( ) ; foreach ( $ statement as $ result ) { if ( $ entry = $ list -> getResult ( $ result ) ) { yield $ this -> orderedEntry ( iterator_to_array ( $ this -> projectEntry ( $ entry ) ) , $ headers ) ; } } }
A generator that takes an EntryList and converts it to CSV rows
@param \Concrete\Core\Express\EntryList $list
@return \Generator
A generator that takes an EntryList and converts it to CSV rows