concrete/src/User/CsvWriter.php
private function projectList(UserList $list)
    {
        $statement = $list->deliverQueryObject()->execute();

        foreach ($statement as $result) {
            $user = $list->getResult($result);
            yield iterator_to_array($this->projectUser($user));
        }
    }
private function projectList(UserList $list)
    {
        $statement = $list->deliverQueryObject()->execute();

        foreach ($statement as $result) {
            $user = $list->getResult($result);
            yield iterator_to_array($this->projectUser($user));
        }
    }
private function projectList ( UserList $ list ) { $ statement = $ list -> deliverQueryObject ( ) -> execute ( ) ; foreach ( $ statement as $ result ) { $ user = $ list -> getResult ( $ result ) ; yield iterator_to_array ( $ this -> projectUser ( $ user ) ) ; } }
A generator that takes a UserList and converts it to CSV rows
@param \Concrete\Core\User\UserList $list
@return \Generator
A generator that takes a UserList and converts it to CSV rows