Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 37 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WriterFactory:: (1 method):
  createFromFile()


Class: WriterFactory  - X-Ref

This factory is used to create writers, based on the type of the file to be read.
It supports CSV, XLSX and ODS formats.

createFromFile(string $path)   X-Ref
This creates an instance of the appropriate writer, given the extension of the file to be written.

param: string $path The path to the spreadsheet file. Supported extensions are .csv,.ods and .xlsx