class PHPExcel_IOFactory

PHPExcel_IOFactory

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Methods

static array
getSearchLocations()

Get search locations

static 
setSearchLocations(array $value)

Set search locations

static 
addSearchLocation(string $type = '', string $location = '', string $classname = '')

Add search location

createWriter(PHPExcel $phpExcel, string $writerType = '')

Create PHPExcelWriterIWriter

createReader(string $readerType = '')

Create PHPExcelReaderIReader

static PHPExcel
load(string $pFilename)

Loads PHPExcel from file using automatic PHPExcelReaderIReader resolution

static string
identify(string $pFilename)

Identify file type using automatic PHPExcelReaderIReader resolution

createReaderForFile(string $pFilename)

Create PHPExcelReaderIReader for file using automatic PHPExcelReaderIReader resolution

Details

at line 92
static array getSearchLocations()

Get search locations

Return Value

array

at line 105
static setSearchLocations(array $value)

Set search locations

Parameters

array $value

Exceptions

PHPExcel_Reader_Exception

at line 123
static addSearchLocation(string $type = '', string $location = '', string $classname = '')

Add search location

Parameters

string $type Example: IWriter
string $location Example: PHPExcel/Writer/{0}.php
string $classname Example: PHPExcelWriter{0}

at line 138
static PHPExcel_Writer_IWriter createWriter(PHPExcel $phpExcel, string $writerType = '')

Create PHPExcelWriterIWriter

Parameters

PHPExcel $phpExcel
string $writerType Example: Excel2007

Return Value

PHPExcel_Writer_IWriter

Exceptions

PHPExcel_Reader_Exception

at line 168
static PHPExcel_Reader_IReader createReader(string $readerType = '')

Create PHPExcelReaderIReader

Parameters

string $readerType Example: Excel2007

Return Value

PHPExcel_Reader_IReader

Exceptions

PHPExcel_Reader_Exception

at line 198
static PHPExcel load(string $pFilename)

Loads PHPExcel from file using automatic PHPExcelReaderIReader resolution

Parameters

string $pFilename The name of the spreadsheet file

Return Value

PHPExcel

Exceptions

PHPExcel_Reader_Exception

at line 213
static string identify(string $pFilename)

Identify file type using automatic PHPExcelReaderIReader resolution

Parameters

string $pFilename The name of the spreadsheet file to identify

Return Value

string

Exceptions

PHPExcel_Reader_Exception

at line 231
static PHPExcel_Reader_IReader createReaderForFile(string $pFilename)

Create PHPExcelReaderIReader for file using automatic PHPExcelReaderIReader resolution

Parameters

string $pFilename The name of the spreadsheet file

Return Value

PHPExcel_Reader_IReader

Exceptions

PHPExcel_Reader_Exception