\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

Summary

Methods
Properties
Constants
getSearchLocations()
setSearchLocations()
addSearchLocation()
createWriter()
createReader()
load()
identify()
createReaderForFile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$searchLocations
$autoResolveClasses
N/A

Properties

$searchLocations

$searchLocations : array

Search locations

Type

array

$autoResolveClasses

$autoResolveClasses : array

Autoresolve classes

Type

array

Methods

getSearchLocations()

getSearchLocations() : array

Get search locations

Returns

array

setSearchLocations()

setSearchLocations(array  $value) 

Set search locations

Parameters

array $value

Throws

\PHPExcel_Reader_Exception

addSearchLocation()

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}

createWriter()

createWriter(\PHPExcel  $phpExcel, string  $writerType = '') : \PHPExcel_Writer_IWriter

Create PHPExcel_Writer_IWriter

Parameters

\PHPExcel $phpExcel
string $writerType

Example: Excel2007

Throws

\PHPExcel_Reader_Exception

Returns

\PHPExcel_Writer_IWriter

createReader()

createReader(string  $readerType = '') : \PHPExcel_Reader_IReader

Create PHPExcel_Reader_IReader

Parameters

string $readerType

Example: Excel2007

Throws

\PHPExcel_Reader_Exception

Returns

\PHPExcel_Reader_IReader

load()

load(string  $pFilename) : \PHPExcel

Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution

Parameters

string $pFilename

The name of the spreadsheet file

Throws

\PHPExcel_Reader_Exception

Returns

\PHPExcel

identify()

identify(string  $pFilename) : string

Identify file type using automatic PHPExcel_Reader_IReader resolution

Parameters

string $pFilename

The name of the spreadsheet file to identify

Throws

\PHPExcel_Reader_Exception

Returns

string

createReaderForFile()

createReaderForFile(string  $pFilename) : \PHPExcel_Reader_IReader

Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution

Parameters

string $pFilename

The name of the spreadsheet file

Throws

\PHPExcel_Reader_Exception

Returns

\PHPExcel_Reader_IReader

__construct()

__construct() 

Private constructor for PHPExcel_IOFactory