Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

(no description)

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

Defines 1 class

Slk:: (9 methods):
  __construct()
  canRead()
  setInputEncoding()
  getInputEncoding()
  listWorksheetInfo()
  load()
  loadIntoExisting()
  getSheetIndex()
  setSheetIndex()


Class: Slk  - X-Ref

__construct()   X-Ref
Create a new SYLK Reader instance.


canRead($pFilename)   X-Ref
Validate that the current file is a SYLK file.

param: string $pFilename
return: bool

setInputEncoding($pValue)   X-Ref
Set input encoding.

param: string $pValue Input encoding, eg: 'ANSI'
return: Slk

getInputEncoding()   X-Ref
Get input encoding.

return: string

listWorksheetInfo($pFilename)   X-Ref
Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns).

param: string $pFilename
return: array

load($pFilename)   X-Ref
Loads PhpSpreadsheet from file.

param: string $pFilename
return: Spreadsheet

loadIntoExisting($pFilename, Spreadsheet $spreadsheet)   X-Ref
Loads PhpSpreadsheet from file into PhpSpreadsheet instance.

param: string $pFilename
param: Spreadsheet $spreadsheet
return: Spreadsheet

getSheetIndex()   X-Ref
Get sheet index.

return: int

setSheetIndex($pValue)   X-Ref
Set sheet index.

param: int $pValue Sheet index
return: Slk