\PHPExcel_IOFactory

PHPExcel_IOFactory

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