- ⌂ io_comand_io
- Classes
io_comand_io\exporter
Export content from a COMAND repository to JSON and CSV.
Example
// export objects to a JSON file
$repo = comand::repo();
$objects = $repo->get('FROM Presidents');
$exporter = new \io_comand_io\exporter($repo);
$exporter->Format = 'json';
$exporter->export_to_file($objects, 'presidents.js');
Methods
- Constructor
- check_strategy()
- close()
- export()
- export_to_browser()
- export_to_file()
- export_to_stdout()
- export_to_stream()
- export_to_string()
- export_to_temp()
- get_stream()
- open()
- open_browser()
- open_file()
- open_stdout()
- open_stream()
- open_string()
- open_temp()
Properties
- repo
- options
- strategy
- formatter
- writer