Index

(view)

o2view_export

string o2view_export(string $view_name, string $csv_file_name, boolean $only_visible, string $fields_separator, string $text_delimiter, string $decimal_separator, string $date_format, string $time_format, boolean $titles_from_view, array $excluded_aliases, array $used_aliases)

Export data from a prg view to a CSV format file.
File is zipped and the full path to file is returned.


Parameters:
  1. $view_name
  2. Name of the view to export data from
  3. $csv_file_name
  4. Target file name
  5. $only_visible
  6. Export only data visible on prg forms
  7. $fields_separator
  8. Character use to separate fields
  9. $text_delimiter
  10. Character used to delimiter text values
  11. $decimal_separator
  12. Character used as decimal point in numbers
  13. $date_format
  14. Format used for data fields (PHP date() style)
  15. $time_format
  16. Format used for time fields (PHP date() style)
  17. $titles_from_view
  18. If TRUE field alias in view is used as title
  19. $excluded_aliases
  20. List of aliases excluded in export
  21. $used_aliases
  22. List of (alias => column-title) to override all