Skip to content

ODS

Methods

getWriter

php
protected getWriter(\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet): \PhpOffice\PhpSpreadsheet\Writer\Ods

Parameters:

ParameterTypeDescription
$spreadsheet\PhpOffice\PhpSpreadsheet\Spreadsheet

Inherited methods

fromFilePath

php
public static fromFilePath(string $path): static
  • This method is static.

Parameters:

ParameterTypeDescription
$pathstring

fromFileInfo

php
public static fromFileInfo(\SplFileInfo $file): static
  • This method is static.

Parameters:

ParameterTypeDescription
$file\SplFileInfo

fromString

php
public static fromString(string $input): static
  • This method is static.

Parameters:

ParameterTypeDescription
$inputstring

convertSplFileToString

php
protected convertSplFileToString(): string

import

php
public import(\MammothPHP\WoollyM\DataFrame $to = new DataFrame()): \MammothPHP\WoollyM\DataFrame

Parameters:

ParameterTypeDescription
$to\MammothPHP\WoollyM\DataFrame

toArray

php
public toArray(): array

fromDataFrame

php
public static fromDataFrame(\MammothPHP\WoollyM\DataFrame $df): static
  • This method is static.

Parameters:

ParameterTypeDescription
$df\MammothPHP\WoollyM\DataFrame

prepareToFileInput

php
protected prepareToFileInput(mixed $file, bool $overwriteFile): \SplFileObject|false

Parameters:

ParameterTypeDescription
$filemixed
$overwriteFilebool

format

php
public format(?string $sheetName = self::DEFAULT_SHEET_NAME, mixed $colRow = self::DEFAULT_COLROW): static

Parameters:

ParameterTypeDescription
$sheetName?string
$colRowmixed- Parse data after specified line (starting at 1), and consider this line at the header. Set to 0 for no header.

loadFile

Loads the file which the CSV class was instantiated with.

php
protected loadFile(string $file): array

Parameters:

ParameterTypeDescription
$filestring

Throws:


getWriter

php
protected getWriter(\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet): \PhpOffice\PhpSpreadsheet\Writer\BaseWriter

Parameters:

ParameterTypeDescription
$spreadsheet\PhpOffice\PhpSpreadsheet\Spreadsheet

toFile

Write an Excel file

php
public toFile(string|\SplFileInfo $file, bool $overwriteFile = false, string $worksheetTitle = 'DataFrame'): void

Parameters:

ParameterTypeDescription
$filestring|\SplFileInfo
$overwriteFilebool
$worksheetTitlestring

toExcelSpreadsheet

Converts the columns and data passed to an XLSX worksheet and adds that worksheet to an instance of PHPExcel

php
public toExcelSpreadsheet(\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet, string $worksheetTitle = 'DataFrame'): \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet

Parameters:

ParameterTypeDescription
$spreadsheet\PhpOffice\PhpSpreadsheet\Spreadsheet
$worksheetTitlestring

Throws:



Automatically generated on 2024-07-03

Released under the BSD 3-Clause License.